Beispiel #1
0
 private void WfAborted(WorkflowApplicationAbortedEventArgs obj)
 {
     _executionLog?.ClearStates();
     Dispatcher.BeginInvoke(new Action(() =>
     {
         var m = new ExecutionMessage()
         {
             ExecutionState = "WorkflowStop", Sender = Name, ParentNames = new string[0]
         };
         subject.OnNext(m);
         var s = string.Format("[{0}] [{1}] [{2}]",
                               DateTime.Now.ToString("HH:mm:ss"),
                               m.Sender,
                               m.ExecutionState);
         LogExecution(s);
     }));
 }