示例#1
0
        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.");
        }
示例#2
0
        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.");
        }