public void CreateBookmarkScope(NativeActivityContext context, Guid scopeId)
 {
     this.ThrowIfContextIsNullOrDisposed(context);
     if (this.bookmarkScope != null)
     {
         throw FxTrace.Exception.AsError(new InvalidOperationException(System.Activities.SR.CreateBookmarkScopeFailed));
     }
     base.ThrowIfUninitialized();
     this.bookmarkScope = context.CreateBookmarkScope(scopeId, this);
 }
        public void CreateBookmarkScope(NativeActivityContext context)
        {
            this.ThrowIfContextIsNullOrDisposed(context);
            if (this.bookmarkScope != null)
            {
                throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CreateBookmarkScopeFailed));
            }

            this.ThrowIfUninitialized();
            this.bookmarkScope = context.CreateBookmarkScope(Guid.Empty, this);
            this.bookmarkScope.IncrementHandleReferenceCount();
        }
Exemple #3
0
        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();
        }
Exemple #4
0
        public void CreateBookmarkScope(NativeActivityContext context)
        {
            this.ThrowIfContextIsNullOrDisposed(context);
            if (this.BookmarkScope != null)
            {
                throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CreateBookmarkScopeFailed));
            }

            this.ThrowIfUninitialized();
            this.BookmarkScope = context.CreateBookmarkScope(Guid.Empty, this);
            this.BookmarkScope.IncrementHandleReferenceCount();
        }
 protected override void Execute(NativeActivityContext context)
 {
     context.SetValue(this.Result, context.CreateBookmarkScope());
 }