111 references to ActivityInstance
System.Activities (111)
System\Activities\AsyncCodeActivity.cs (11)
248
TD.CompleteBookmarkWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id, ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark), ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark.Scope));
256
TD.ScheduleBookmarkWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id, ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark), ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark.Scope));
264
TD.StartBookmarkWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id, ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark), ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark.Scope));
274
context = new AsyncCodeActivityContext(this.asyncContext, this.
ActivityInstance
, executor);
275
IAsyncCodeActivity owner = (IAsyncCodeActivity)this.
ActivityInstance
.Activity;
System\Activities\Runtime\ActivityExecutionWorkItem.cs (5)
32
return this.
ActivityInstance
.State == ActivityInstanceState.Executing;
40
return this.
ActivityInstance
;
60
executor.AbortActivityInstance(this.
ActivityInstance
, this.ExceptionToPropagate);
62
else if (this.
ActivityInstance
.UpdateState(executor))
67
Exception newException = executor.CompleteActivityInstance(this.
ActivityInstance
);
System\Activities\Runtime\ActivityExecutor.cs (43)
1654
ActivityInstance exceptionSource = workItem.
ActivityInstance
;
2557
AddTrackingRecord(new BookmarkResumptionRecord(this.WorkflowInstanceId, bookmark, resumeExecutionWorkItem.
ActivityInstance
, value));
2678
AddTrackingRecord(new BookmarkResumptionRecord(this.WorkflowInstanceId, bookmark, resumeExecutionWorkItem.
ActivityInstance
, value));
3035
CompleteOperation(asyncCompletionWorkItem.
ActivityInstance
, false);
3270
return this.
ActivityInstance
.State == ActivityInstanceState.Executing;
3322
executor.AbortActivityInstance(this.
ActivityInstance
, this.reason);
3354
TD.CompleteCancelActivityWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id);
3362
TD.ScheduleCancelActivityWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id);
3370
TD.StartCancelActivityWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id);
3378
this.
ActivityInstance
.Cancel(executor, bookmarkManager);
3448
TD.ScheduleExecuteActivityWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id);
3456
TD.StartExecuteActivityWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id);
3464
TD.CompleteExecuteActivityWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id);
3479
if (!this.
ActivityInstance
.ResolveArguments(executor, this.argumentValueOverrides, resultLocation))
3484
if (!this.
ActivityInstance
.ResolveVariables(executor))
3491
this.
ActivityInstance
.SetInitializedSubstate(executor);
3495
executor.debugController.ActivityStarted(this.
ActivityInstance
);
3498
this.
ActivityInstance
.Execute(executor, bookmarkManager);
3530
this.
ActivityInstance
));
3629
return this.
ActivityInstance
.State == ActivityInstanceState.Executing;
3689
executor.AbortActivityInstance(this.
ActivityInstance
, this.ExceptionToPropagate);
4317
TD.CompleteTransactionContextWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id);
4325
TD.ScheduleTransactionContextWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id);
4333
TD.StartTransactionContextWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id);
4343
transactionContext = new NativeActivityTransactionContext(this.
ActivityInstance
, executor, bookmarkManager, this.waiter.Handle);
System\Activities\Runtime\BookmarkWorkItem.cs (10)
63
TD.CompleteBookmarkWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id, ActivityUtilities.GetTraceString(this.bookmark), ActivityUtilities.GetTraceString(this.bookmark.Scope));
71
TD.ScheduleBookmarkWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id, ActivityUtilities.GetTraceString(this.bookmark), ActivityUtilities.GetTraceString(this.bookmark.Scope));
79
TD.StartBookmarkWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id, ActivityUtilities.GetTraceString(this.bookmark), ActivityUtilities.GetTraceString(this.bookmark.Scope));
89
nativeContext.Initialize(this.
ActivityInstance
, executor, bookmarkManager);
System\Activities\Runtime\CompletionCallbackWrapper.cs (14)
165
TD.CompleteCompletionWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id, this.completedInstance.Activity.GetType().ToString(), this.completedInstance.Activity.DisplayName, this.completedInstance.Id);
173
TD.ScheduleCompletionWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id, this.completedInstance.Activity.GetType().ToString(), this.completedInstance.Activity.DisplayName, this.completedInstance.Id);
181
TD.StartCompletionWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id, this.completedInstance.Activity.GetType().ToString(), this.completedInstance.Activity.DisplayName, this.completedInstance.Id);
193
context.Initialize(this.
ActivityInstance
, executor, bookmarkManager);
210
if (this.
ActivityInstance
.InstanceMap != null)
212
this.
ActivityInstance
.InstanceMap.RemoveEntry(this);
247
if (this.CompletedInstance.State != ActivityInstanceState.Closed && this.
ActivityInstance
.IsPerformingDefaultCancelation)
249
this.
ActivityInstance
.MarkCanceled();
System\Activities\Runtime\EmptyWithCancelationCheckWorkItem.cs (2)
56
if (this.completedInstance.State != ActivityInstanceState.Closed && this.
ActivityInstance
.IsPerformingDefaultCancelation)
58
this.
ActivityInstance
.MarkCanceled();
System\Activities\Runtime\ExecuteSynchronousExpressionWorkItem.cs (4)
121
executor.ExecuteInResolutionContextUntyped(this.
ActivityInstance
, this.expressionActivity, this.instanceId, this.resultLocation);
137
executor.ScheduleExpressionFaultPropagation(this.expressionActivity, this.instanceId, this.
ActivityInstance
, e);
142
if (this.
ActivityInstance
.InstanceMap != null)
144
this.
ActivityInstance
.InstanceMap.RemoveEntry(this);
System\Activities\Runtime\FaultCallbackWrapper.cs (10)
95
TD.CompleteFaultWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id, this.originalExceptionSource.ActivityInstance.Activity.GetType().ToString(), this.originalExceptionSource.ActivityInstance.Activity.DisplayName, this.originalExceptionSource.ActivityInstance.Id, this.propagatedException);
103
TD.ScheduleFaultWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id, this.originalExceptionSource.ActivityInstance.Activity.GetType().ToString(), this.originalExceptionSource.ActivityInstance.Activity.DisplayName, this.originalExceptionSource.ActivityInstance.Id, this.propagatedException);
111
TD.StartFaultWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id, this.originalExceptionSource.ActivityInstance.Activity.GetType().ToString(), this.originalExceptionSource.ActivityInstance.Activity.DisplayName, this.originalExceptionSource.ActivityInstance.Id, this.propagatedException);
121
faultContext = new NativeActivityFaultContext(this.
ActivityInstance
, executor, bookmarkManager, this.propagatedException, this.originalExceptionSource);
System\Activities\Runtime\ResolveNextArgumentWorkItem.cs (2)
74
Activity activity = this.
ActivityInstance
.Activity;
98
this.
ActivityInstance
.ResolveArguments(executor, argumentValueOverrides, resultLocation, nextArgumentIndex);
System\Activities\Runtime\WorkItem.cs (10)
83
return this.
ActivityInstance
;
238
TD.ScheduleRuntimeWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id);
248
TD.StartRuntimeWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id);
258
TD.CompleteRuntimeWorkItem(this.
ActivityInstance
.Activity.GetType().ToString(), this.
ActivityInstance
.Activity.DisplayName, this.
ActivityInstance
.Id);