static void Main(string[] args) { ConsoleHelper.Title = "WebRedisManager v5.3.2.5"; var config = SAEAMvcApplicationConfigBuilder.Read(); config.Port = 80; config.Count = 100; SAEAMvcApplicationConfigBuilder.Write(config); SAEAMvcApplication mvcApplication = new SAEAMvcApplication(config); mvcApplication.Start(); WebSocketsHelper webSocketsHelper = new WebSocketsHelper(); webSocketsHelper.Start(); ConsoleHelper.WriteLine("WebRedisManager Already started"); ConsoleHelper.WriteLine("Please open on Browser:http://127.0.0.1:80/"); ConsoleHelper.WriteLine("Enter to exit service..."); while (true) { Thread.Sleep(50); } //ConsoleHelper.ReadLine(); }
static void Main(string[] args) { ConsoleHelper.Title = "WebRedisManager v5.3.2.1"; var config = SAEAMvcApplicationConfigBuilder.Read(); config.Port = 16379; config.Count = 100; SAEAMvcApplicationConfigBuilder.Write(config); SAEAMvcApplication mvcApplication = new SAEAMvcApplication(config); mvcApplication.Start(); WebSocketsHelper webSocketsHelper = new WebSocketsHelper(); webSocketsHelper.Start(); ConsoleHelper.WriteLine("WebRedisManager Already started"); ConsoleHelper.WriteLine("Please open on Browser:http://localhost:16379/"); ConsoleHelper.WriteLine("Enter to exit service..."); ConsoleHelper.ReadLine(); }
static void Main(string[] args) { ConsoleHelper.Title = "SAEA.WebRedisManager " + SAEAVersion.ToString(); var config = SAEAMvcApplicationConfigBuilder.Read(); //config.Port = 16379; //config.IsStaticsCached = false; SAEAMvcApplicationConfigBuilder.Write(config); //启动api SAEAMvcApplication mvcApplication = new SAEAMvcApplication(config); mvcApplication.Start(); //启动websocket WebSocketsHelper webSocketsHelper = new WebSocketsHelper(port: 16666); webSocketsHelper.Start(); ConsoleHelper.WriteLine("SAEA.WebRedisManager Already started"); ConsoleHelper.WriteLine($"Please open on Browser:http://127.0.0.1:{config.Port}/"); ConsoleHelper.WriteLine("Enter to exit service..."); ConsoleHelper.ReadLine(); }
protected override async Task ExecuteAsync(CancellationToken stoppingToken) { await Task.Yield(); var config = SAEAMvcApplicationConfigBuilder.Read(); config.Port = 16379; config.IsStaticsCached = false; SAEAMvcApplicationConfigBuilder.Write(config); //启动api SAEAMvcApplication mvcApplication = new SAEAMvcApplication(config); mvcApplication.Start(); //启动websocket WebSocketsHelper webSocketsHelper = new WebSocketsHelper(port: 16666); webSocketsHelper.Start(); try { ConsoleHelper.WriteLine("SAEA.WebRedisManager Already started"); ConsoleHelper.WriteLine($"Please open on Browser:http://127.0.0.1:{config.Port}/"); } catch { } }