Files
BeWoPlaner/Service/ServiceUtils/Paths/ServerFilePaths.cs

45 lines
1.9 KiB
C#
Raw Normal View History

2022-08-30 09:12:20 +02:00
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BeWo.Service.ServiceUtils.Paths
{
public static class ServerFilePaths
{
// UpdateRootPath
// L specialTenant
// L tenant#1
// L exampleData#1
// L version
// L 1.0.0.0
// L _default
// L exampleData#2
// L tenant#1
// L exampleData#3
// L 1.0.0.1
// L _default
// L exampleData#4
// L tenant#1
// L exampleData#5
// L version.config
public static string UpdateRootFolderPath
2022-09-14 10:57:51 +02:00
=> @"d:\Rene\ServerBeWoDataExample2";
2022-08-30 09:12:20 +02:00
//=> ConfigurationManager.AppSettings.Get("UpdateRootPath");
public static string GetSpecialTenantFolderPath() => Path.Combine(UpdateRootFolderPath, "overridetenant");
public static string GetOverrideTenantFolderPath(string tenant) => Path.Combine(GetSpecialTenantFolderPath(), tenant);
public static string GetVersionFolderPath() => Path.Combine(UpdateRootFolderPath, "version");
public static string GetVersionFolderPath(string version) => Path.Combine(GetVersionFolderPath(), version);
public static string GetVersionTenantFolderPath(string version, string tenant) => Path.Combine(GetVersionFolderPath(version), tenant);
public static string GetVersionDefaultFolderPath(string version) => GetVersionTenantFolderPath(version, "default");
2022-09-14 10:57:51 +02:00
public static string GetVersionConfigFilePath() => Path.Combine(GetVersionFolderPath(), "update.config");
2022-08-30 09:12:20 +02:00
//ConfigurationManager.AppSettings.Get("UpdateRootPath");
}
}