45 lines
1.9 KiB
C#
45 lines
1.9 KiB
C#
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
|
|
=> @"d:\Rene\ServerBeWoDataExample2";
|
|
//=> 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");
|
|
|
|
public static string GetVersionConfigFilePath() => Path.Combine(GetVersionFolderPath(), "update.config");
|
|
//ConfigurationManager.AppSettings.Get("UpdateRootPath");
|
|
}
|
|
}
|