public SuspendCoreAsyncResult(WorkflowServiceInstance.SuspendAsyncResult parent, AsyncCallback callback, object state) : base(callback, state)
 {
     this.parent = parent;
     IAsyncResult result = this.parent.Instance.BeginWaitForCanPersist(ref this.parent.ownsLock, this.parent.timeoutHelper.RemainingTime(), base.PrepareAsyncCompletion(handleEndWaitForCanPersist), this);
     if (base.SyncContinue(result))
     {
         base.Complete(true);
     }
 }
 public static WorkflowServiceInstance.SuspendAsyncResult Create(WorkflowServiceInstance instance, bool isUnlocked, string reason, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state)
 {
     WorkflowServiceInstance.SuspendAsyncResult result = new WorkflowServiceInstance.SuspendAsyncResult(instance, isUnlocked, reason, transaction, callback, state);
     result.Run(timeout);
     return result;
 }