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();
        }
Ejemplo n.º 2
0
 public Task <Func <Task <TResponseResult> > > OnOperationAsync <TRequestParameter, TResponseResult>(string operationName, TRequestParameter requestParameter)
     where TRequestParameter : class
     where TResponseResult : class =>
 grainEffector.OnOperationAsync <TRequestParameter, TResponseResult>(operationName, requestParameter);