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