예제 #1
0
파일: Bridge.cs 프로젝트: ibebbs/Harmonize
 public void Initialize()
 {
     _mediatorSubscription = new CompositeDisposable(
         _eventMediator.GetEvent <Event.Register>().Subscribe(Process),
         _eventMediator.GetEvent <Event.Observation>().Subscribe(Process),
         _eventMediator.GetEvent <Event.Deregister>().Subscribe(Process)
         );
 }
예제 #2
0
        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);
 }