System\Activities\AsyncCodeActivity.cs (6)
248TD.CompleteBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark), ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark.Scope));
256TD.ScheduleBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark), ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark.Scope));
264TD.StartBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark), ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark.Scope));
System\Activities\Hosting\WorkflowInstance.cs (5)
470protected internal abstract IAsyncResult OnBeginResumeBookmark(Bookmark bookmark, object value, TimeSpan timeout, AsyncCallback callback, object state);
761BookmarkResumptionResult ScheduleBookmarkResumption(Bookmark bookmark, object value)
771BookmarkResumptionResult ScheduleBookmarkResumption(Bookmark bookmark, object value, BookmarkScope scope)
1031public BookmarkResumptionResult ScheduleBookmarkResumption(Bookmark bookmark, object value)
1047public BookmarkResumptionResult ScheduleBookmarkResumption(Bookmark bookmark, object value, BookmarkScope scope)
System\Activities\NativeActivityContext.cs (12)
258public Bookmark CreateBookmark(string name)
274public Bookmark CreateBookmark(string name, BookmarkCallback callback)
279public Bookmark CreateBookmark(string name, BookmarkCallback callback, BookmarkOptions options)
303public Bookmark CreateBookmark(string name, BookmarkCallback callback, BookmarkScope scope)
308public Bookmark CreateBookmark(string name, BookmarkCallback callback, BookmarkScope scope, BookmarkOptions options)
335public Bookmark CreateBookmark()
340public Bookmark CreateBookmark(BookmarkCallback callback)
345public Bookmark CreateBookmark(BookmarkCallback callback, BookmarkOptions options)
441public bool RemoveBookmark(Bookmark bookmark)
468public BookmarkResumptionResult ResumeBookmark(Bookmark bookmark, object value)
478internal void RegisterMainRootCompleteCallback(Bookmark bookmark)
2260Bookmark onPersistBookmark = CreateBookmark(onPersistComplete);
System\Activities\Runtime\ActivityExecutor.cs (15)
65Bookmark mainRootCompleteBookmark;
605internal Bookmark SerializedMainRootCompleteBookmark
1281Bookmark bookmark = this.bookmarkManager.CreateBookmark(callback, callbackOwner, BookmarkOptions.None);
2490public void RequestPersist(Bookmark onPersistBookmark, ActivityInstance requestingInstance)
2521internal BookmarkResumptionResult TryResumeHostBookmark(Bookmark bookmark, object value)
2533internal BookmarkResumptionResult TryResumeUserBookmark(Bookmark bookmark, object value, bool isExternal)
2565else if (bookmark == Bookmark.AsyncOperationCompletionBookmark)
2640internal IAsyncResult BeginResumeBookmark(Bookmark bookmark, object value, TimeSpan timeout, AsyncCallback callback, object state)
2652internal BookmarkResumptionResult TryResumeBookmark(Bookmark bookmark, object value, BookmarkScope scope)
2752public void RegisterMainRootCompleteCallback(Bookmark bookmark)
3071Bookmark onPersistBookmark;
3074public PersistenceWaiter(Bookmark onPersist, ActivityInstance waitingInstance)
3080public Bookmark OnPersistBookmark
3105internal Bookmark SerializedOnPersistBookmark
3335public CompleteAsyncOperationWorkItem(BookmarkCallbackWrapper wrapper, Bookmark bookmark, object value)
System\Activities\Runtime\BookmarkManager.cs (26)
18Dictionary<Bookmark, BookmarkCallbackWrapper> bookmarks;
53internal Dictionary<Bookmark, BookmarkCallbackWrapper> SerializedBookmarks
73public Bookmark CreateBookmark(string name, BookmarkCallback callback, ActivityInstance owningInstance, BookmarkOptions options)
75Bookmark toAdd = new Bookmark(name);
89public Bookmark CreateBookmark(BookmarkCallback callback, ActivityInstance owningInstance, BookmarkOptions options)
93Bookmark bookmark = Bookmark.Create(GetNextBookmarkId());
101void UpdateAllExclusiveHandles(Bookmark bookmark, ActivityInstance owningInstance)
153public Bookmark GenerateTempBookmark()
155return Bookmark.Create(GetNextBookmarkId());
158void AddBookmark(Bookmark bookmark, BookmarkCallback callback, ActivityInstance owningInstance, BookmarkOptions options)
162this.bookmarks = new Dictionary<Bookmark, BookmarkCallbackWrapper>(Bookmark.Comparer);
197public bool TryGetBookmarkFromInternalList(Bookmark bookmark, out Bookmark internalBookmark, out BookmarkCallbackWrapper callbackWrapper)
217public BookmarkResumptionResult TryGenerateWorkItem(ActivityExecutor executor, bool isExternal, ref Bookmark bookmark, object value, ActivityInstance isolationInstance, out ActivityExecutionWorkItem workItem)
219Bookmark internalBookmark = null;
251foreach (KeyValuePair<Bookmark, BookmarkCallbackWrapper> bookmarkEntry in this.bookmarks)
263public void PurgeBookmarks(Bookmark singleBookmark, IList<Bookmark> multipleBookmarks)
274Bookmark bookmark = multipleBookmarks[i];
280internal void PurgeSingleBookmark(Bookmark bookmark)
287public bool Remove(Bookmark bookmark, ActivityInstance instanceAttemptingRemove)
292Bookmark internalBookmark;
309void Remove(Bookmark bookmark, BookmarkCallbackWrapper callbackWrapper)
316void UpdateExclusiveHandleList(Bookmark bookmark)
System\Activities\Runtime\BookmarkScopeManager.cs (10)
122public Bookmark CreateBookmark(string name, BookmarkScope scope, BookmarkCallback callback, ActivityInstance owningInstance, BookmarkOptions options)
142public bool RemoveBookmark(Bookmark bookmark, BookmarkScope scope, ActivityInstance instanceAttemptingRemove)
164public BookmarkResumptionResult TryGenerateWorkItem(ActivityExecutor executor, ref Bookmark bookmark, BookmarkScope scope, object value, ActivityInstance isolationInstance, bool nonScopedBookmarksExist, out ActivityExecutionWorkItem workItem)
196Bookmark internalBookmark;
256Bookmark bookmarkFromList;
549public bool IsExclusiveScopeUnstable(Bookmark bookmark)
566public void PurgeBookmarks(BookmarkManager nonScopedBookmarkManager, Bookmark singleBookmark, IList<Bookmark> multipleBookmarks)
577Bookmark bookmark = multipleBookmarks[i];
584void PurgeBookmark(Bookmark bookmark, BookmarkManager nonScopedBookmarkManager)
System\Activities\WorkflowApplication.cs (9)
2547public BookmarkResumptionResult ResumeBookmark(Bookmark bookmark, object value)
2564public BookmarkResumptionResult ResumeBookmark(Bookmark bookmark, object value, TimeSpan timeout)
2662public IAsyncResult BeginResumeBookmark(Bookmark bookmark, object value, AsyncCallback callback, object state)
2668public IAsyncResult BeginResumeBookmark(Bookmark bookmark, object value, TimeSpan timeout, AsyncCallback callback, object state)
2682protected internal override IAsyncResult OnBeginResumeBookmark(Bookmark bookmark, object value, TimeSpan timeout, AsyncCallback callback, object state)
2693BookmarkResumptionResult ResumeBookmarkCore(Bookmark bookmark, object value)
3182Bookmark bookmark;
3191public ResumeBookmarkAsyncResult(WorkflowApplication instance, Bookmark bookmark, object value, TimeSpan timeout, AsyncCallback callback, object state)
3196public ResumeBookmarkAsyncResult(WorkflowApplication instance, Bookmark bookmark, object value, bool isFromExtension, TimeSpan timeout, AsyncCallback callback, object state)