Beispiel #1
0
 public IEnumerator <ITask> SubscribeHandler(depthcam.Subscribe subscribe)
 {
     yield return(Arbiter.Choice(
                      SubscribeHelper(_subMgrPort, subscribe.Body, subscribe.ResponsePort),
                      delegate(SuccessResult success)
     {
         _subMgrPort.Post(new submgr.Submit(
                              subscribe.Body.Subscriber, dssp.DsspActions.ReplaceRequest, _state, null));
     },
                      delegate(Exception ex) { LogError(ex); }
                      ));
 }
 public void OnSubscribe(depth.Subscribe subscribe)
 {
     SubscribeHelper(this.depthSubMgr, subscribe, subscribe.ResponsePort);
 }