public Task StopAsync(AbpAsyncApplicationLifecycleContext context) { context.ServiceProvider.GetRequiredService <ILogger <MyService> >() .LogError("MyService.StopAsync"); return(Task.CompletedTask); }
public Task StartAsync(AbpAsyncApplicationLifecycleContext context) { context.ServiceProvider.GetRequiredService <ILogger <ConsoleAppModule> >() .LogError("ConsoleAppModule.StartAsync"); return(Task.CompletedTask); }