修改了IOC容器的实现,使其更加轻量

This commit is contained in:
fengjiayi
2025-06-02 15:16:23 +08:00
parent e9832c0dbd
commit a43c611d72
10 changed files with 317 additions and 362 deletions

View File

@@ -145,7 +145,7 @@ namespace Serein.Library.Web
return false; // 没有对应的处理配置
}
ControllerBase controllerInstance = (ControllerBase)SereinIOC.Instantiate(controllerType);
ControllerBase controllerInstance = (ControllerBase)SereinIOC.CreateTempObject(controllerType);
if (controllerInstance is null)
{