Esempio n. 1
0
        public void Initialize()
        {
            _eventSubscription = new CompositeDisposable(
                _eventMediator.GetEvent <Event.Connected>().Subscribe(Process),
                _eventMediator.GetEvent <Event.Disconnected>().Subscribe(Process)
                );

            _stateMachine.Initialize();
        }
Esempio n. 2
0
        public Task StartAsync(CancellationToken cancellationToken)
        {
            _subscription = _stateMachine.Initialize(_config.Value.Devices.Split(',', StringSplitOptions.RemoveEmptyEntries));

            return(Task.CompletedTask);
        }