Example #1
0
        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);
        }
Example #2
0
        public IDictionary <string, object> Invoke(IDictionary <string, object> inputs, TimeSpan timeout)
        {
            TimeoutHelper.ThrowIfNegativeArgument(timeout);

            return(WorkflowInvoker.Invoke(_workflow, inputs, timeout, _extensions));
        }
Example #3
0
        public IDictionary <string, object> Invoke(TimeSpan timeout)
        {
            TimeoutHelper.ThrowIfNegativeArgument(timeout);

            return(WorkflowInvoker.Invoke(this.workflow, timeout, this.extensions));
        }
Example #4
0
 public IDictionary <string, object> Invoke(IDictionary <string, object> inputs)
 {
     return(WorkflowInvoker.Invoke(_workflow, inputs, ActivityDefaults.InvokeTimeout, _extensions));
 }
Example #5
0
 public IDictionary <string, object> Invoke()
 {
     return(WorkflowInvoker.Invoke(this.workflow, ActivityDefaults.InvokeTimeout, this.extensions));
 }