46 lines
1.7 KiB
C#
46 lines
1.7 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Configuration;
|
|||
|
|
using System.IO;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace BeWo.Service.ServiceUtils.Update
|
|||
|
|
{
|
|||
|
|
public static class UpdatePathHelper
|
|||
|
|
{
|
|||
|
|
// 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 UpdateRootPath
|
|||
|
|
=> @"d:\ServerBeWoDataExample";
|
|||
|
|
//=> ConfigurationManager.AppSettings.Get("UpdateRootPath");
|
|||
|
|
|
|||
|
|
public static string SpecialTenantPath() => Path.Combine(UpdateRootPath, "specialtenant");
|
|||
|
|
public static string SpecialTenantPath(string tenant) => Path.Combine(SpecialTenantPath(), tenant);
|
|||
|
|
public static string VersionPath() => Path.Combine(UpdateRootPath, "version");
|
|||
|
|
public static string VersionConfigPath() => Path.Combine(UpdateRootPath, "version.config");
|
|||
|
|
|
|||
|
|
public static string VersionPath(string version) => Path.Combine(VersionPath(), version);
|
|||
|
|
public static string VersionTenantPath(string version, string tenant) => Path.Combine(VersionPath(version), tenant);
|
|||
|
|
public static string VersionDefaultPath(string version) => VersionTenantPath(version, "_default");
|
|||
|
|
|
|||
|
|
//ConfigurationManager.AppSettings.Get("UpdateRootPath");
|
|||
|
|
}
|
|||
|
|
}
|