예제 #1
0
 public static IServiceCollection RegisterDotChat(this IServiceCollection serviceCollection, IDependencyModule module, bool rootModule = true)
 {
     module.Register(new DependencyRegistrar(serviceCollection), rootModule);
     return(serviceCollection);
 }
예제 #2
0
 public static void RegisterModule(this IServiceCollection collection, IDependencyModule dependencyModule) =>
 dependencyModule?.Register(collection);
예제 #3
0
 public static ContainerBuilder RegisterDotChat(this ContainerBuilder serviceCollection, IDependencyModule module, bool rootModule = true)
 {
     module.Register(new DependencyRegistrar(serviceCollection), rootModule);
     return(serviceCollection);
 }
예제 #4
0
 public void RegisterModule(IDependencyModule module)
 {
     module.Register(this);
 }