public void EffectorProxy()
        {
            IEffectorOperations proxy = EffectorProxy<ITestEffector2>.CreateProxy(new Effector());

            proxy.OnOperationAsync<string, string>("ITestEffectorBase.SayHello1", "foo").Result();
            proxy.OnOperationAsync<string>("ITestEffectorBase.SayHello2", "foo").Result();
            proxy.OnOperationAsync<string>("ITestEffectorBase.SayHello3").Result();
            proxy.OnOperationAsync("ITestEffectorBase.SayHello4").Result();
            proxy.OnOperationAsync("ITestEffector2.SayHello44").Result();
        }
Esempio n. 2
0
 public WorkflowGrainEffector(WorkflowGrain <TWorkflowState, TAffector, TEffector> grain)
 {
     this.grain         = grain;
     this.grainEffector = EffectorProxy <TEffector> .CreateProxy(grain as TEffector);
 }