From 4f8eea9a2af3a72e5ce55173cdc0759dd02f5f20 Mon Sep 17 00:00:00 2001
From: Rodney Chen <rodney.chen@hotmail.com>
Date: 星期二, 01 四月 2025 19:54:53 +0800
Subject: [PATCH] 增加u9实体

---
 Tiger.Api/Program.cs |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/Tiger.Api/Program.cs b/Tiger.Api/Program.cs
index 4599314..21de323 100644
--- a/Tiger.Api/Program.cs
+++ b/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)
 	{

--
Gitblit v1.9.3