Exemplo n.º 1
0
 public IEnumerator <ITask> ReplaceHandler(Replace replace)
 {
     _state = replace.Body;
     try
     {
         SetCallback(new SetAllRequestInfo()
         {
             Timestamp = replace.Body.Timestamp,
             Values    = replace.Body.Values
         });
         replace.ResponsePort.Post(DefaultReplaceResponseType.Instance);
         SendNotification <Replace>(replace);
     }
     catch (Exception e)
     {
         replace.ResponsePort.Post(RSUtils.FaultOfException(e));
     }
     yield break;
 }
Exemplo n.º 2
0
 public virtual IEnumerator <ITask> ReplaceHandler(Replace replace)
 {
     _state = replace.Body;
     base.SendNotification <Replace>(_subMgrPort, replace);
     yield break;
 }