Пример #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();
        }
Пример #2
0
 public WorkflowHostCallback(WorkflowGrain <TGrain, TGrainState, TWorkflowInterface, TWorkflowCallbackInterface> grain)
 {
     this.grain = grain;
     this.workflowCallbackInterfaceProxy = WorkflowCallbackInterfaceProxy <TWorkflowCallbackInterface> .CreateProxy(grain as TWorkflowCallbackInterface);
 }