Exemplo n.º 1
0
        public void AttachModule <TModule>(TModule module)
            where TModule : ISImplModule
        {
            _logger.LogDebug($"ModuleManager > AttachModule started");

            _moduleManager.AttachModule(module);
            LogModule(module);

            _logger.LogDebug($"ModuleManager > AttachModule ended");
        }
 public IGenericHostApplicationBuilder UseGenericHostAppModule <TModule>(Func <TModule> factory)
     where TModule : IGenericHostApplicationModule
 {
     _moduleManager.AttachModule(factory.Invoke());
     return(this);
 }
Exemplo n.º 3
0
 public ISImplHostBuilder Use(ISImplModule module)
 {
     _moduleManager.AttachModule(module);
     return(this);
 }
Exemplo n.º 4
0
 public ISImplHostBuilder Use <TModule>(Func <TModule> factory)
     where TModule : ISImplModule
 {
     _moduleManager.AttachModule(factory.Invoke());
     return(this);
 }