public void MethodTestDefault() { var e = new RpcClass <int>(); TestMethod <RpcClass <int>, RpcClass <int> >(CurrentTestUrl, "Default", e, e); TestMethod <RpcClass <int>, RpcClass <int> >(CurrentTestUrl, "Mirror", e, e); }
public void Add(RpcServerContext context) { RpcClass <int, int> c = context.GetArgs <RpcClass <int, int> >(); // Console.WriteLine("Rpc.Test1 {0} {1}", c.Value1, c.Value2); context.Return(c.Value1 + c.Value2); }
public void Default(RpcServerContext context) { RpcClass <int> a = new RpcClass <int>(); context.Return(a); }