protected async Task <bool> Handle(StopSystemQuery stopSystemCommand) { await MessageBroker.Request <StopSystemQuery, bool>(StopSystemQuery.Default, _configService); await _configService.StopAsync(); await _scheduler.Shutdown(); _actorFactory.GetExistingActor(nameof(Controller)).Stop(); return(true); }
protected async Task <bool> Handle(StopSystemQuery stopSystemCommand) { await MessageBroker.Request <StopSystemQuery, bool>(StopSystemQuery.Default, _configService); await _configService.StopAsync(); await _scheduler.Shutdown(); Mapper.Reset(); // TODO configuration is using static mapper - fix this because second execution need this static reset _actorFactory.GetExistingActor(nameof(Controller)).Stop(); return(true); }
protected async Task <bool> Handle(StopSystemQuery stopSystemCommand) { foreach (var service in _services.Values) { await service.StopAsync(); } foreach (var adapter in _adapters.Values) { await adapter.StopAsync(); } await _mainArea.StopAsync(); return(true); }
protected async Task <bool> Handle(StopSystemQuery stopSystemCommand) { foreach (var service in _services.Values) { await service.StopAsync(); } foreach (var adapter in _adapters.Values) { await adapter.StopAsync(); } foreach (var component in _components.Values) { await component.StopAsync(); } return(true); }