81 references to CurrentInstance
System.Activities (81)
System\Activities\AsyncCodeActivityContext.cs (3)
26
return this.
CurrentInstance
.IsCancellationRequested;
49
if (!this.
CurrentInstance
.IsCancellationRequested && !this.asyncContext.IsAborting)
54
this.
CurrentInstance
.MarkCanceled();
System\Activities\CodeActivityContext.cs (2)
34
if (this.
CurrentInstance
.PropertyManager != null)
36
return (THandle)this.
CurrentInstance
.PropertyManager.GetProperty(Handle.GetPropertyName(typeof(THandle)), this.Activity.MemberOf);
System\Activities\Debugger\DebugInfo.cs (4)
158
context.Reinitialize(context.
CurrentInstance
, context.CurrentExecutor, element, context.
CurrentInstance
.InternalId);
676
context.Reinitialize(context.
CurrentInstance
, context.CurrentExecutor, expression, context.
CurrentInstance
.InternalId);
System\Activities\Expressions\CompiledExpressionInvoker.cs (1)
195
ActivityInstance current = activityContext.
CurrentInstance
;
System\Activities\NativeActivityContext.cs (68)
51
return this.
CurrentInstance
.IsCancellationRequested;
60
return new ExecutionProperties(this, this.
CurrentInstance
, this.
CurrentInstance
.PropertyManager);
159
this.
CurrentInstance
.CancelChildren(this);
166
return this.
CurrentInstance
.GetChildren();
191
if (!object.ReferenceEquals(activity.Parent, this.
CurrentInstance
))
243
if (!object.ReferenceEquals(activityInstance.Parent, this.
CurrentInstance
))
255
this.
CurrentInstance
.BaseCancel(this);
271
return this.bookmarkManager.CreateBookmark(name, null, this.
CurrentInstance
, BookmarkOptions.None);
293
if (!CallbackWrapper.IsValidCallback(callback, this.
CurrentInstance
))
300
return this.bookmarkManager.CreateBookmark(name, callback, this.
CurrentInstance
, options);
318
if (!CallbackWrapper.IsValidCallback(callback, this.
CurrentInstance
))
330
return this.executor.BookmarkScopeManager.CreateBookmark(name, scope, callback, this.
CurrentInstance
, options);
350
if (callback != null && !CallbackWrapper.IsValidCallback(callback, this.
CurrentInstance
))
357
return this.bookmarkManager.CreateBookmark(callback, this.
CurrentInstance
, options);
408
this.executor.RethrowException(this.
CurrentInstance
, context);
415
this.
CurrentInstance
.RemoveAllBookmarks(this.executor.RawBookmarkScopeManager, this.bookmarkManager);
422
if (!this.
CurrentInstance
.IsCancellationRequested)
427
this.
CurrentInstance
.MarkCanceled();
448
return this.bookmarkManager.Remove(bookmark, this.
CurrentInstance
);
465
return this.executor.BookmarkScopeManager.RemoveBookmark(new Bookmark(name), scope, this.
CurrentInstance
);
522
if (CallbackWrapper.IsValidCallback(onCompleted, this.
CurrentInstance
))
524
completionBookmark = ActivityUtilities.CreateCompletionBookmark(onCompleted, this.
CurrentInstance
);
534
if (CallbackWrapper.IsValidCallback(onFaulted, this.
CurrentInstance
))
536
faultBookmark = ActivityUtilities.CreateFaultBookmark(onFaulted, this.
CurrentInstance
);
549
ActivityInstance parent = this.
CurrentInstance
;
588
ActivityInstance parent = this.
CurrentInstance
;
617
ActivityInstance parent = this.
CurrentInstance
;
651
ActivityInstance parent = this.
CurrentInstance
;
686
ActivityInstance parent = this.
CurrentInstance
;
723
ActivityInstance parent = this.
CurrentInstance
;
763
ActivityInstance parent = this.
CurrentInstance
;
804
ActivityInstance parent = this.
CurrentInstance
;
846
ActivityInstance parent = this.
CurrentInstance
;
889
ActivityInstance parent = this.
CurrentInstance
;
934
ActivityInstance parent = this.
CurrentInstance
;
980
ActivityInstance parent = this.
CurrentInstance
;
1027
ActivityInstance parent = this.
CurrentInstance
;
1075
ActivityInstance parent = this.
CurrentInstance
;
1124
ActivityInstance parent = this.
CurrentInstance
;
1174
ActivityInstance parent = this.
CurrentInstance
;
1225
ActivityInstance parent = this.
CurrentInstance
;
1277
ActivityInstance parent = this.
CurrentInstance
;
1326
ActivityInstance parent = this.
CurrentInstance
;
1353
ActivityInstance parent = this.
CurrentInstance
;
1382
ActivityInstance parent = this.
CurrentInstance
;
1417
ActivityInstance parent = this.
CurrentInstance
;
1453
ActivityInstance parent = this.
CurrentInstance
;
1490
ActivityInstance parent = this.
CurrentInstance
;
1530
ActivityInstance parent = this.
CurrentInstance
;
1571
ActivityInstance parent = this.
CurrentInstance
;
1613
ActivityInstance parent = this.
CurrentInstance
;
1656
ActivityInstance parent = this.
CurrentInstance
;
1701
ActivityInstance parent = this.
CurrentInstance
;
1747
ActivityInstance parent = this.
CurrentInstance
;
1794
ActivityInstance parent = this.
CurrentInstance
;
1842
ActivityInstance parent = this.
CurrentInstance
;
1891
ActivityInstance parent = this.
CurrentInstance
;
1941
ActivityInstance parent = this.
CurrentInstance
;
1992
ActivityInstance parent = this.
CurrentInstance
;
2044
ActivityInstance parent = this.
CurrentInstance
;
2092
ActivityInstance parent = this.
CurrentInstance
;
2144
ActivityInstance parent = this.
CurrentInstance
;
2171
ActivityInstance declaringActivityInstance = this.FindDeclaringActivityInstance(this.
CurrentInstance
, activityDelegate.Owner);
2203
if (handle.Owner == this.
CurrentInstance
)
2243
this.executor.RequestTransactionContext(this.
CurrentInstance
, isRequires, handle, callback, state);
2252
this.executor.CompleteTransaction(handle, callback, this.
CurrentInstance
);
2261
this.executor.RequestPersist(onPersistBookmark, this.
CurrentInstance
);
System\Activities\NativeActivityTransactionContext.cs (1)
33
this.executor.SetTransaction(this.transactionHandle, transaction, transactionHandle.Owner, this.
CurrentInstance
);
System\Activities\XamlIntegration\CompiledDataContext.cs (1)
143
ActivityInstance currentInstance = activityContext.
CurrentInstance
;
System\Activities\XamlIntegration\CompiledLocation.cs (1)
56
this.rootInstance = currentActivityContext.
CurrentInstance
;