예제 #1
0
 /// <summary>
 /// 自定义服务注入
 /// </summary>
 /// <param name="container"></param>
 static void RegisterServices(IDIContainer container)
 {
     WebDependencyInjectionManager.RegisterDefaultService();
     RepositoryConfig.Init();
 }
예제 #2
0
 public static void RegisterServices(IServiceCollection services)
 {
     ContainerManager.Init(services, serviceRegisterAction: RegisterServices);
     RepositoryConfig.Init();
 }