public void Initialize() { _eventSubscription = new CompositeDisposable( _eventMediator.GetEvent <Event.Connected>().Subscribe(Process), _eventMediator.GetEvent <Event.Disconnected>().Subscribe(Process) ); _stateMachine.Initialize(); }
public Task StartAsync(CancellationToken cancellationToken) { _subscription = _stateMachine.Initialize(_config.Value.Devices.Split(',', StringSplitOptions.RemoveEmptyEntries)); return(Task.CompletedTask); }