namespace FreeSR.Dispatch.Service.Manager { using FreeSR.Dispatch.Configuration; using FreeSR.Proto; internal static class RegionManager { private static RegionConfiguration s_configuration; public static void Initialize(RegionConfiguration configuration) { s_configuration = configuration; } public static List GetRegionList() { var region = new RegionEntry { EnvType = s_configuration.EnvType, DispatchUrl = s_configuration.DispatchUrl, Name = s_configuration.Name, DisplayName = s_configuration.Name, Title = s_configuration.Name }; return new List { region }; } public static string GetTopServerRegionName() => s_configuration.Name; } }