private void InvokeCallback(IAsyncResult result) { if (result.CompletedSynchronously) { return; } AsyncInvokeContext context = (AsyncInvokeContext)result.AsyncState; WorkflowInvoker thisPtr = context.Invoker; Exception error = null; try { context.Outputs = thisPtr.EndInvoke(result); } catch (Exception e) { if (Fx.IsFatal(e)) { throw; } error = e; } thisPtr.PostInvokeCompletedAndRemove(context, error); }
public IDictionary <string, object> Invoke(IDictionary <string, object> inputs, TimeSpan timeout) { TimeoutHelper.ThrowIfNegativeArgument(timeout); return(WorkflowInvoker.Invoke(_workflow, inputs, timeout, _extensions)); }
public IDictionary <string, object> Invoke(TimeSpan timeout) { TimeoutHelper.ThrowIfNegativeArgument(timeout); return(WorkflowInvoker.Invoke(this.workflow, timeout, this.extensions)); }
public IDictionary <string, object> Invoke(IDictionary <string, object> inputs) { return(WorkflowInvoker.Invoke(_workflow, inputs, ActivityDefaults.InvokeTimeout, _extensions)); }
public IDictionary <string, object> Invoke() { return(WorkflowInvoker.Invoke(this.workflow, ActivityDefaults.InvokeTimeout, this.extensions)); }