public static IServiceCollection RegisterDotChat(this IServiceCollection serviceCollection, IDependencyModule module, bool rootModule = true) { module.Register(new DependencyRegistrar(serviceCollection), rootModule); return(serviceCollection); }
public static void RegisterModule(this IServiceCollection collection, IDependencyModule dependencyModule) => dependencyModule?.Register(collection);
public static ContainerBuilder RegisterDotChat(this ContainerBuilder serviceCollection, IDependencyModule module, bool rootModule = true) { module.Register(new DependencyRegistrar(serviceCollection), rootModule); return(serviceCollection); }
public void RegisterModule(IDependencyModule module) { module.Register(this); }