Example #1
0
        public void WorkflowCallbackInterfaceProxy()
        {
            IWorkflowHostCallbackOperations proxy = WorkflowCallbackInterfaceProxy <ITestWorkflowCallbackInterface2> .CreateProxy(new WorkflowCallbackInterface());

            proxy.OnOperationAsync <string, string>("ITestWorkflowCallbackInterfaceBase.SayHello1", "foo").Result();
            proxy.OnOperationAsync <string>("ITestWorkflowCallbackInterfaceBase.SayHello2", "foo").Result();
            proxy.OnOperationAsync <string>("ITestWorkflowCallbackInterfaceBase.SayHello3").Result();
            proxy.OnOperationAsync("ITestWorkflowCallbackInterfaceBase.SayHello4").Result();
            proxy.OnOperationAsync("ITestWorkflowCallbackInterface2.SayHello44").Result();
        }
 public Task <Func <Task <TResponseResult> > > OnOperationAsync <TRequestParameter, TResponseResult>(string operationName, TRequestParameter requestParameter) =>
 workflowCallbackInterfaceProxy.OnOperationAsync <TRequestParameter, TResponseResult>(operationName, requestParameter);