public void Handle(ICommand command) { if (!_telemetryService.IsRunning()) { _outboundEventBus.Send(new CommandResultEvent(command.CorrelationId, StatusCode.Refused, nameof(StartTelemetryServiceCommand), "Telemetry service is already stopped")); return; } _telemetryService.Stop(); _outboundEventBus.Send(new CommandResultEvent(command.CorrelationId, StatusCode.Success, nameof(StartTelemetryServiceCommand))); }