1 write to Activity
System.Activities (1)
System\Activities\ActivityInstance.cs (1)
1122
this.
Activity
= activity;
251 references to Activity
System.Activities (251)
System\Activities\ActivityContext.cs (2)
34
this.Activity = this.instance.
Activity
;
137
Reinitialize(instance, executor, instance.
Activity
, instance.InternalId);
System\Activities\ActivityInstance.cs (32)
82
return this.
Activity
;
479
this.ownerName = this.
Activity
.GetType().Name;
659
currentInstance.
Activity
.InternalAbort(currentInstance, executor, terminationReason);
665
currentInstance.PropertyManager.UnregisterProperties(currentInstance, currentInstance.
Activity
.MemberOf, true);
707
this.
Activity
.InternalCancel(this, executor, bookmarkManager);
718
this.
Activity
.InternalExecute(this, executor, bookmarkManager);
758
if (this.
Activity
== null)
768
this.PropertyManager.OnDeserialized(this, parent, this.
Activity
.MemberOf, executor);
855
int symbolCount = this.
Activity
.SymbolCount + delegateParameterCount;
863
this.environment = new LocationEnvironment(executor, this.
Activity
);
876
this.environment = new LocationEnvironment(executor, this.
Activity
, parentEnvironment, symbolCount);
887
if (this.
Activity
.SkipArgumentResolution)
892
IList<RuntimeArgument> runtimeArguments = this.
Activity
.RuntimeArguments;
935
int totalArgumentCount = this.
Activity
.RuntimeArguments.Count;
958
if (this.
Activity
.IsFastPath)
962
Fx.Assert(((ActivityWithResult)this.
Activity
).ResultRuntimeArgument != null, "We should have a result argument");
964
RuntimeArgument argument = ((ActivityWithResult)this.
Activity
).ResultRuntimeArgument;
974
else if (!this.
Activity
.SkipArgumentResolution)
976
IList<RuntimeArgument> runtimeArguments = this.
Activity
.RuntimeArguments;
1016
runtimeVariables = this.
Activity
.ImplementationVariables;
1020
runtimeVariables = this.
Activity
.RuntimeVariables;
1041
IList<Variable> implementationVariables = this.
Activity
.ImplementationVariables;
1042
IList<Variable> runtimeVariables = this.
Activity
.RuntimeVariables;
1219
if (executor.ShouldTrackActivity(this.
Activity
.DisplayName))
1227
int runtimeArgumentsCount = this.
Activity
.RuntimeArguments.Count;
1232
RuntimeArgument argument = this.
Activity
.RuntimeArguments[i];
1237
if (this.environment.TryGetLocation(argument.Id, this.
Activity
, out location))
1250
TD.InArgumentBound(argument.Name, this.
Activity
.GetType().ToString(), this.
Activity
.DisplayName, this.Id, argumentValue);
1279
if (executor.ShouldTrackActivity(this.
Activity
.DisplayName))
1295
TD.ActivityCompleted(this.
Activity
.GetType().ToString(), this.
Activity
.DisplayName, this.Id, this.State.GetStateName());
System\Activities\AsyncCodeActivity.cs (7)
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));
275
IAsyncCodeActivity owner = (IAsyncCodeActivity)this.ActivityInstance.
Activity
;
System\Activities\Bookmark.cs (1)
156
return new BookmarkInfo(this.externalName, bookmarkCallback.ActivityInstance.
Activity
.DisplayName, scopeInfo);
System\Activities\Debugger\DebugController.cs (3)
43
if (!(activityInstance.
Activity
.RootActivity is Constraint)) // Don't debug an activity in a Constraint
52
if (!(activityInstance.
Activity
.RootActivity is Constraint)) // Don't debug an activity in a Constraint
76
Activity rootActivity = instance.
Activity
;
System\Activities\Debugger\DebugInfo.cs (3)
53
Activity activity = activityInstance.
Activity
;
179
activityInstance.
Activity
.RuntimeArguments.Select(argument =>
198
Activity activity = activityInstance.
Activity
;
System\Activities\Debugger\DebugManager.cs (12)
360
Activity activity = instance.
Activity
;
403
if (this.EnsureInstrumented(activityInstance.
Activity
))
405
this.LeaveState(activityInstance.
Activity
);
517
if (activity != instance.
Activity
|| primeCurrentInstance)
522
Fx.Assert(primeCurrentInstance || (activity.Parent == instance.
Activity
), "Argument Expression is not given correct parent instance");
523
if (primeCurrentInstance || !IsParallelActivity(instance.
Activity
))
530
while (instanceParent != null && !IsParallelActivity(instanceParent.
Activity
))
536
if (instanceParent != null && IsParallelActivity(instanceParent.
Activity
))
539
int parentThreadId = GetExecutingThreadId(instanceParent.
Activity
, false);
542
parentThreadId = CreateLogicalThread(instanceParent.
Activity
, instanceParent, true);
580
if (EnsureInstrumented(currentInstance.
Activity
))
582
this.EnterState(threadId, currentInstance.
Activity
, GenerateLocals(currentInstance));
System\Activities\DynamicUpdate\NativeActivityUpdateContext.cs (2)
43
this.currentInstance.
Activity
!= null,
76
get { return this.currentInstance.
Activity
; }
System\Activities\Expressions\CompiledExpressionInvoker.cs (2)
197
while (current != null && current.
Activity
!= this.metadataRoot)
201
if (CompiledExpressionInvoker.TryGetCompiledExpressionRoot(current.
Activity
, true, out currentCompiledExpressionRoot))
System\Activities\NativeActivityContext.cs (82)
551
if (!activity.IsMetadataCached || activity.CacheId != parent.
Activity
.CacheId)
553
throw FxTrace.Exception.Argument("activity", SR.ActivityNotPartOfThisTree(activity.DisplayName, parent.
Activity
.DisplayName));
556
if (!activity.CanBeScheduledBy(parent.
Activity
))
558
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CanOnlyScheduleDirectChildren(parent.
Activity
.DisplayName, activity.DisplayName, activity.Parent.DisplayName)));
563
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.DelegateHandlersCannotBeScheduledDirectly(parent.
Activity
.DisplayName, activity.DisplayName)));
597
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
602
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
626
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
631
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
660
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
665
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
695
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
700
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
732
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
737
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
772
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
777
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
813
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
818
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
855
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
860
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
898
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
903
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
943
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
948
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
989
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
994
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1036
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1041
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1084
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1089
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1133
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1138
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1183
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1188
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1234
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1239
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1286
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1291
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1335
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1340
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1362
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1367
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1391
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1396
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1426
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1431
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1462
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1467
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1499
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1504
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1539
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1544
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1580
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1585
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1622
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1627
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1665
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1670
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1710
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1715
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1756
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1761
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1803
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1808
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1851
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1856
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1900
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1905
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
1950
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
1955
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
2001
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
2006
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
2053
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
2058
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
2101
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, parent.
Activity
.ToString()));
2106
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, parent.
Activity
.ToString()));
2150
if (!activity.IsMetadataCached || activity.CacheId != parent.
Activity
.CacheId)
2152
throw FxTrace.Exception.Argument("activity", SR.ActivityNotPartOfThisTree(activity.DisplayName, parent.
Activity
.DisplayName));
2161
if (!activityDelegate.CanBeScheduledBy(parent.
Activity
))
2163
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CanOnlyScheduleDirectChildren(parent.
Activity
.DisplayName, activityDelegate.DisplayName, activityDelegate.Owner.DisplayName)));
2271
if (object.ReferenceEquals(currentActivityInstance.
Activity
, activityToMatch))
System\Activities\Runtime\ActivityExecutor.cs (34)
1272
TD.RuntimeTransactionSet(transactionOwner.
Activity
.GetType().ToString(), transactionOwner.
Activity
.DisplayName, transactionOwner.Id, isolationScope.
Activity
.GetType().ToString(), isolationScope.
Activity
.DisplayName, isolationScope.Id);
1301
TD.RuntimeTransactionCompletionRequested(callbackOwner.
Activity
.GetType().ToString(), callbackOwner.
Activity
.DisplayName, callbackOwner.Id);
1340
TD.RuntimeTransactionCompletionRequested(instance.
Activity
.GetType().ToString(), instance.
Activity
.DisplayName, instance.Id);
1692
this.Terminate(new InvalidOperationException(SR.CannotPropagateExceptionWhileCanceling(exceptionSource.
Activity
.DisplayName, exceptionSource.Id), exception));
1696
this.AbortWorkflowInstance(new InvalidOperationException(SR.CannotPropagateExceptionWhileCanceling(exceptionSource.
Activity
.DisplayName, exceptionSource.Id), exception));
2167
targetInstance.PropertyManager.UnregisterProperties(targetInstance, targetInstance.
Activity
.MemberOf);
2376
this.host.NotifyUnhandledException(exception, source.
Activity
, source.Id);
2848
TD.ActivityScheduled(parent.
Activity
.GetType().ToString(), parent.
Activity
.DisplayName, parent.Id, activity.GetType().ToString(), activity.DisplayName, scheduledInstanceId);
2912
if (!activity.IsMetadataCached || activity.CacheId != parent.
Activity
.CacheId)
2914
throw FxTrace.Exception.Argument("activity", SR.ActivityNotPartOfThisTree(activity.DisplayName, parent.
Activity
.DisplayName));
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);
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);
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);
System\Activities\Runtime\ActivityInstanceMap.cs (2)
468
IInstanceUpdatable activity = instance.
Activity
as IInstanceUpdatable;
478
ActivityBlockingUpdate.AddBlockingActivity(ref updateErrors, instance.
Activity
, new QualifiedId(participant.OriginalId).ToString(), updateContext.DisallowedReason, instance.Id);
System\Activities\Runtime\ActivityInstanceReference.cs (2)
34
return this.activityInstance.
Activity
;
53
if (this.activityInstance.
Activity
== null)
System\Activities\Runtime\BookmarkManager.cs (2)
177
TD.CreateBookmark(owningInstance.
Activity
.GetType().ToString(), owningInstance.
Activity
.DisplayName, owningInstance.Id, ActivityUtilities.GetTraceString(bookmark), ActivityUtilities.GetTraceString((BookmarkScope)bookmark.Scope));
System\Activities\Runtime\BookmarkWorkItem.cs (6)
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));
System\Activities\Runtime\CallbackWrapper.cs (4)
109
if (object.ReferenceEquals(target, owningInstance.
Activity
))
238
object targetInstance = this.ActivityInstance.
Activity
;
280
targetInstance = this.ActivityInstance.
Activity
;
312
Type activityType = this.ActivityInstance.
Activity
.GetType();
System\Activities\Runtime\CompletionCallbackWrapper.cs (15)
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);
189
Fx.Assert(this.completedInstance.
Activity
!= null, "Activity definition should always be associated with an activity instance.");
223
return this.completedInstance.
Activity
;
229
if (this.completedInstance.
Activity
== null)
System\Activities\Runtime\DelegateCompletionCallbackWrapper.cs (2)
36
if (completedInstance.
Activity
.HandlerOf != null)
38
IList<RuntimeDelegateArgument> runtimeArguments = completedInstance.
Activity
.HandlerOf.RuntimeDelegateArguments;
System\Activities\Runtime\FaultCallbackWrapper.cs (12)
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);
System\Activities\Runtime\FuncCompletionCallbackWrapper.cs (5)
61
if (completedInstance.
Activity
.HandlerOf != null)
63
DelegateOutArgument resultArgument = completedInstance.
Activity
.HandlerOf.GetResultArgument();
70
ActivityWithResult activity = completedInstance.
Activity
as ActivityWithResult;
80
Fx.Assert(completedInstance.
Activity
is ActivityWithResult, "should only be using FuncCompletionCallbackWrapper with ActivityFunc and ActivityWithResult");
81
resultId = GetResultId((ActivityWithResult)completedInstance.
Activity
);
System\Activities\Runtime\LocationEnvironment.cs (1)
217
this.Definition = handleScope.
Activity
;
System\Activities\Runtime\ResolveNextArgumentWorkItem.cs (1)
74
Activity activity = this.ActivityInstance.
Activity
;
System\Activities\Runtime\WorkItem.cs (6)
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);
System\Activities\Statements\InternalState.cs (1)
704
this.triggerInternalTransitionMapping.TryGetValue(completedInstance.
Activity
, out internalTransition);
System\Activities\Statements\Sequence.cs (2)
112
if (completedInstanceIndex >= this.Activities.Count || this.Activities[completedInstanceIndex] != completedInstance.
Activity
)
114
completedInstanceIndex = this.Activities.IndexOf(completedInstance.
Activity
);
System\Activities\Tracking\ActivityInfo.cs (1)
47
: this(instance.
Activity
, instance.InternalId)
System\Activities\Tracking\ActivityStateRecord.cs (4)
220
Activity currentElement = currentInstance.
Activity
;
221
Activity startActivity = currentInstance.
Activity
;
256
currentElement = currentInstance.
Activity
;
286
Activity currentElement = currentInstance.
Activity
;
System\Activities\WorkflowDataContext.cs (1)
80
LocationReferenceEnvironment environment = this.activityInstance.
Activity
.PublicEnvironment;
System\Activities\XamlIntegration\CompiledDataContext.cs (2)
147
if (dataContextActivities.Contains(currentInstance.
Activity
))
154
if (currentInstance.
Activity
== compiledRoot)
System\Activities\XamlIntegration\CompiledLocation.cs (2)
219
if (this.rootInstance != null && this.rootInstance.
Activity
!= null)
222
Activity rootActivity = this.rootInstance.
Activity
;