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