public WorkflowExecutionContextEventArgs(WorkflowExecutionContext context, Activity activity) { CodeContract.Requires(context != null); CodeContract.Requires(activity != null); Context = context; Activity = activity; }
public void AddActivity(Activity handlerActivity, EventHandlingType handlingType) { switch (handlingType) { case EventHandlingType.Sync: SyncActivity = handlerActivity; break; case EventHandlingType.Async: throw new NotImplementedException(); } }
private static string FormatMessage(string message, Activity activity, WorkflowExecutionContext context) { return string.Format("[действие: {0}; контекст: {1}] {2}", activity, context, message); }
public ActivityExecutionException( string message, Exception innerEx, Activity activity, WorkflowExecutionContext context) : base(FormatMessage(message, activity, context), innerEx) { Activity = activity; }
public ActivityExecutionException(string message, Activity activity, WorkflowExecutionContext context) : this(message, null, activity, context) { }
public void RemoveActivity(Activity handlerActivity) { if (SyncActivity == handlerActivity) SyncActivity = null; }
internal void ToggleExecutionToActivity(Activity toggleActivity) { _toggleActivityQueue.TryEnqueue(toggleActivity); }
internal void ActivityExecuted(Activity activity) { CodeContract.Requires(activity != null); EndActivityExecutionTracking(activity); }
internal void ActivityExecuting(Activity activity) { CodeContract.Requires(activity != null); CheckNeedInterrupt(); StartActivityExecutionTracking(activity); }
public void GoToActivity(Activity activity) { ExecutionContext.ToggleExecutionToActivity(activity); }