public void ShutDown(ModuleLoadContext context) { _logger.LogInformation("ShutDown MiCake Application......"); StartModuleLifetime(_modules, bootInfos.Where(s => s.Type == ModuleBootType.Shutdown), context); _logger.LogInformation("ShutDown MiCake Application Completed."); }
public void Initialization(ModuleLoadContext context) { _logger.LogInformation("Initialization MiCake Application......"); StartModuleLifetime(_modules, bootInfos.Where(s => s.Type == ModuleBootType.Init), context); _initializationActions?.Invoke(context); _logger.LogInformation("Initialization MiCake Application Completed."); }