public void Initialize() { _mediatorSubscription = new CompositeDisposable( _eventMediator.GetEvent <Event.Register>().Subscribe(Process), _eventMediator.GetEvent <Event.Observation>().Subscribe(Process), _eventMediator.GetEvent <Event.Deregister>().Subscribe(Process) ); }
public void Initialize() { _eventSubscription = new CompositeDisposable( _eventMediator.GetEvent <Event.Connected>().Subscribe(Process), _eventMediator.GetEvent <Event.Disconnected>().Subscribe(Process) ); _stateMachine.Initialize(); }
public void Initialize() { _subscription = _eventMediator.GetEvent <Event.Reading>().Select(reading => reading.Value).OfType <Packet.Electricity>().Subscribe(Process); }