public void ActivityStatusChanged(System.Workflow.ComponentModel.Activity activity, bool transacted, bool committed)
 {
     if (!committed)
     {
         if (this.trackingEnabled)
         {
             this.ServiceProvider.TrackActivityStatusChange(activity, this.eventCounter++);
         }
         if (activity.ExecutionStatus == ActivityExecutionStatus.Closed)
         {
             this.ScheduleDelayedItems(activity);
         }
     }
     if ((activity.ExecutionStatus == ActivityExecutionStatus.Closed) && (!(activity is ICompensatableActivity) || ((activity is ICompensatableActivity) && activity.CanUninitializeNow)))
     {
         CorrelationTokenCollection.UninitializeCorrelationTokens(activity);
     }
 }
Exemplo n.º 2
0
        public void ActivityStatusChanged(Activity activity, bool transacted, bool committed)
        {
            if (!committed)
            {
                // Forward to 4.0 tracking mechanism, AEC.Track
                if (this.trackingEnabled)
                {
                    this.ServiceProvider.TrackActivityStatusChange(activity, this.eventCounter++);
                }

                if (activity.ExecutionStatus == ActivityExecutionStatus.Closed)
                {
                    this.ScheduleDelayedItems(activity);
                }
            }

            if (activity.ExecutionStatus == ActivityExecutionStatus.Closed)
            {
                if (!(activity is ICompensatableActivity) || ((activity is ICompensatableActivity) && activity.CanUninitializeNow))
                {
                    CorrelationTokenCollection.UninitializeCorrelationTokens(activity);
                }
            }
        }