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

            this.ThrowIfUninitialized();
            _bookmarkScope = context.CreateBookmarkScope(scopeId, this);
            _bookmarkScope.IncrementHandleReferenceCount();
        }