public LightweightMethodDef GetProxyMethod(RpcProxyBase <LightweightMethodDef> proxy, string methodName) { return(proxy.proxyMethods.SingleOrDefault(m => m.OperationName == methodName)); }
public GrpcProxyMethod GetProxyMethod(RpcProxyBase <GrpcProxyMethod> proxy, string methodName) { return(proxy.proxyMethods.SingleOrDefault(m => $"{m.ServiceName}.{m.MethodName}" == methodName)); }
public void heartbeat(RpcProxyBase proxy, object cookie) { }
public void bidirection(RpcProxyBase proxy, object cookie) { }
// following functions should be overrided in user code. public void echo(string result, RpcProxyBase proxy, object cookie) { }
public void timeout(RpcProxyBase proxy, object cookie) { }
public static ServerProxy createWithProxy(RpcProxyBase proxy) { ServerProxy prx = new ServerProxy(proxy.conn); return(prx); }
// following functions should be overrided in user code. public void ping(RpcProxyBase proxy, object cookie) { }
public static ITerminalGatewayServerProxy createWithProxy(RpcProxyBase proxy) { ITerminalGatewayServerProxy prx = new ITerminalGatewayServerProxy(proxy.conn); return(prx); }
// following functions should be overrided in user code. public void datetime(string result, RpcProxyBase proxy, object cookie) { }
// following functions should be overrided in user code. public void onMessage(RpcProxyBase proxy, object cookie) { }