42 references to CompensationBookmarkName
System.Activities (42)
System\Activities\Statements\BookmarkTable.cs (2)
15static int tableSize = Enum.GetValues(typeof(CompensationBookmarkName)).Length; 24public Bookmark this[CompensationBookmarkName bookmarkName]
System\Activities\Statements\CompensableActivity.cs (10)
442Fx.Assert(token.BookmarkTable[CompensationBookmarkName.OnSecondaryRootScheduled] == null, "Bookmark should not be already initialized in the bookmark table."); 443token.BookmarkTable[CompensationBookmarkName.OnSecondaryRootScheduled] = context.CreateBookmark(new BookmarkCallback(OnSecondaryRootScheduled)); 462Fx.Assert(compensationToken.BookmarkTable[CompensationBookmarkName.Canceled] == null, "Bookmark should not be already initialized in the bookmark table."); 463compensationToken.BookmarkTable[CompensationBookmarkName.Canceled] = context.CreateBookmark(new BookmarkCallback(OnCanceledOrCompensated)); 465compensationExtension.NotifyMessage(context, compensationToken.CompensationId, CompensationBookmarkName.OnCancellation); 469Fx.Assert(compensationToken.BookmarkTable[CompensationBookmarkName.Compensated] == null, "Bookmark should not be already initialized in the bookmark table."); 470compensationToken.BookmarkTable[CompensationBookmarkName.Compensated] = context.CreateBookmark(new BookmarkCallback(OnCanceledOrCompensated)); 472compensationExtension.NotifyMessage(context, compensationToken.CompensationId, CompensationBookmarkName.OnCompensation); 530compensationToken.RemoveBookmark(context, CompensationBookmarkName.Canceled); 531compensationToken.RemoveBookmark(context, CompensationBookmarkName.Compensated);
System\Activities\Statements\CompensationExtension.cs (2)
95internal Bookmark FindBookmark(long compensationId, CompensationBookmarkName bookmarkName) 125internal void NotifyMessage(NativeActivityContext context, long compensationId, CompensationBookmarkName compensationBookmark)
System\Activities\Statements\CompensationParticipant.cs (19)
137Fx.Assert(compensationToken.BookmarkTable[CompensationBookmarkName.OnConfirmation] == null, "Bookmark should not be already initialized in the bookmark table."); 138compensationToken.BookmarkTable[CompensationBookmarkName.OnConfirmation] = context.CreateBookmark(new BookmarkCallback(OnConfirmation)); 140Fx.Assert(compensationToken.BookmarkTable[CompensationBookmarkName.OnCompensation] == null, "Bookmark should not be already initialized in the bookmark table."); 141compensationToken.BookmarkTable[CompensationBookmarkName.OnCompensation] = context.CreateBookmark(new BookmarkCallback(OnCompensation)); 143Fx.Assert(compensationToken.BookmarkTable[CompensationBookmarkName.OnCancellation] == null, "Bookmark should not be already initialized in the bookmark table."); 144compensationToken.BookmarkTable[CompensationBookmarkName.OnCancellation] = context.CreateBookmark(new BookmarkCallback(OnCancellation)); 146Bookmark onSecondaryRootScheduled = compensationToken.BookmarkTable[CompensationBookmarkName.OnSecondaryRootScheduled]; 149compensationToken.BookmarkTable[CompensationBookmarkName.OnSecondaryRootScheduled] = null; 172compensationToken.RemoveBookmark(context, CompensationBookmarkName.OnCancellation); 173compensationToken.RemoveBookmark(context, CompensationBookmarkName.OnCompensation); 188compensationExtension.NotifyMessage(context, compensationToken.CompensationId, CompensationBookmarkName.Confirmed); 215compensationExtension.NotifyMessage(context, compensationToken.CompensationId, CompensationBookmarkName.Confirmed); 233compensationExtension.NotifyMessage(context, compensationToken.CompensationId, CompensationBookmarkName.Confirmed); 256compensationToken.RemoveBookmark(context, CompensationBookmarkName.OnCancellation); 257compensationToken.RemoveBookmark(context, CompensationBookmarkName.OnConfirmation); 323compensationToken.RemoveBookmark(context, CompensationBookmarkName.OnCompensation); 324compensationToken.RemoveBookmark(context, CompensationBookmarkName.OnConfirmation); 384compensationExtension.NotifyMessage(context, compensationToken.CompensationId, CompensationBookmarkName.Canceled); 387compensationExtension.NotifyMessage(context, compensationToken.CompensationId, CompensationBookmarkName.Compensated);
System\Activities\Statements\CompensationTokenData.cs (1)
77internal void RemoveBookmark(NativeActivityContext context, CompensationBookmarkName bookmarkName)
System\Activities\Statements\InternalCompensate.cs (4)
51Fx.Assert(tokenData.BookmarkTable[CompensationBookmarkName.Compensated] == null, "Bookmark should not be already initialized in the bookmark table."); 52tokenData.BookmarkTable[CompensationBookmarkName.Compensated] = context.CreateBookmark(new BookmarkCallback(OnCompensated)); 55compensationExtension.NotifyMessage(context, tokenData.CompensationId, CompensationBookmarkName.OnCompensation); 93tokenData.RemoveBookmark(context, CompensationBookmarkName.Compensated);
System\Activities\Statements\InternalConfirm.cs (4)
51Fx.Assert(tokenData.BookmarkTable[CompensationBookmarkName.Confirmed] == null, "Bookmark should not be already initialized in the bookmark table."); 52tokenData.BookmarkTable[CompensationBookmarkName.Confirmed] = context.CreateBookmark(new BookmarkCallback(OnConfirmed)); 55compensationExtension.NotifyMessage(context, tokenData.CompensationId, CompensationBookmarkName.OnConfirmation); 94tokenData.RemoveBookmark(context, CompensationBookmarkName.Confirmed);