internal BookmarkScopeHandle(BookmarkScope bookmarkScope) { _bookmarkScope = bookmarkScope; if (bookmarkScope != null) { _bookmarkScope.IncrementHandleReferenceCount(); } }
public void CreateBookmarkScope(NativeActivityContext context, Guid scopeId) { this.ThrowIfContextIsNullOrDisposed(context); if (_bookmarkScope != null) { throw CoreWf.Internals.FxTrace.Exception.AsError(new InvalidOperationException(SR.CreateBookmarkScopeFailed)); } this.ThrowIfUninitialized(); _bookmarkScope = context.CreateBookmarkScope(scopeId, this); _bookmarkScope.IncrementHandleReferenceCount(); }