服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2025-01-01 5e1220e4b610dfbcde332d9e316eff66ad0bb971
Tiger.Api/Program.cs
@@ -47,11 +47,13 @@
   ConsoleExt.Write($"Link Start{(IsRunAsAdmin ? $" As Admin" : "")}", ConsoleColor.Cyan);
   ConsoleExt.WriteLine($"  < <-<--<---<----< ==== < ===== < ====== ", ConsoleColor.DarkCyan);
   Logger.Console.Info($"Begin to load {prod}");
   var options = new WebApplicationOptions
    System.Net.ServicePointManager.DefaultConnectionLimit = 1024;
    var options = new WebApplicationOptions
   {
       Args = args,
       ContentRootPath = pathToContentRoot
       ContentRootPath = pathToContentRoot,
   };
    var builder = WebApplication.CreateBuilder(options);
@@ -68,6 +70,7 @@
       });
       //builder.RegisterType<TestService>().As<ITest>();
   });
    Logger.Console.Info($"AutoFac container inject successful");
    var startup = new Startup(builder.Configuration);
   startup.ConfigureServices(builder.Services);
@@ -84,7 +87,6 @@
        opt.Limits.MaxConcurrentUpgradedConnections = null;
        opt.Limits.MinRequestBodyDataRate = null;
    });
    System.Net.ServicePointManager.DefaultConnectionLimit = 1024;
    if (isService)
   {