static void Main(string[] args) { RpcProcessor p = new RpcProcessor(); p.UrlPrefix = ""; p.Mount("/example", new RpcServerExample()); //RPC via MQ RpcServer server = new RpcServer(p); server.MqServerAddress = "localhost:15555"; //server.AuthEnabled = true; //server.ApiKey = "2ba912a8-4a8d-49d2-1a22-198fd285cb06"; //server.SecretKey = "461277322-943d-4b2f-b9b6-3f860d746ffd"; server.Mq = "MyRpc"; server.Start(); }
RPCFuncReturnVal DoMethodCall(RPCFuncCall call) { return(RpcProcessor.DoMethodCall <TIface>(call, implementation, byteConverter, customSerializer)); }