public PrepareAsyncResult(TransactionContext context, AsyncCallback callback, object state) : base(callback, state) { this.context = context; IAsyncResult result = null; using (PrepareTransactionalCall(this.context.currentTransaction)) { result = this.context.durableInstance.BeginPersist(TimeSpan.MaxValue, PrepareAsyncCompletion(PrepareAsyncResult.onEndPersist), this); } if (SyncContinue(result)) { Complete(true); } }
public void OnTransactionPrepared() { // Transaction has been prepared. // As far as WorkflowServiceInstance is concerned, no longer in transaction. this.transactionContext = null; this.isInTransaction = false; }
public void OnTransactionPrepared() { this.transactionContext = null; this.isInTransaction = false; }