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