Example #1
0
        /// <summary>
        /// Signals that an activity has changed status.  
        /// This event applies to all status change events 
        /// for all activities in the workflow.
        /// </summary>
        private void FireActivityStatusChange(object sender, Activity activity)
        {
            ActivityStatusChangeEventArgs args = new ActivityStatusChangeEventArgs(activity);

            EventHandler<WorkflowExecutionEventArgs> localWorkflowExecutionEvent = this._workflowExecutionEvent;
            if (null != localWorkflowExecutionEvent)
                localWorkflowExecutionEvent(sender, args);
        }
 private void FireActivityStatusChange(object sender, Activity activity)
 {
     ActivityStatusChangeEventArgs e = new ActivityStatusChangeEventArgs(activity);
     EventHandler<WorkflowExecutionEventArgs> handler = this._workflowExecutionEvent;
     if (handler != null)
     {
         handler(sender, e);
     }
 }