| | |
| | | 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); |
| | |
| | | }); |
| | | //builder.RegisterType<TestService>().As<ITest>(); |
| | | }); |
| | | |
| | | Logger.Console.Info($"AutoFac container inject successful"); |
| | | var startup = new Startup(builder.Configuration); |
| | | startup.ConfigureServices(builder.Services); |
| | |
| | | |
| | | builder.WebHost.UseKestrel(opt => |
| | | { |
| | | opt.Limits.MinRequestBodyDataRate = null; |
| | | }); |
| | | // 设置最大连接数 |
| | | opt.Limits.MaxConcurrentConnections = null; |
| | | // 设置请求队列的长度 |
| | | opt.Limits.MaxConcurrentUpgradedConnections = null; |
| | | opt.Limits.MinRequestBodyDataRate = null; |
| | | }); |
| | | |
| | | if (isService) |
| | | { |