Example #1
0
 public void AddService(IRSocketService service)
 {
     RSocketService.Register(client, service, metadata => new RSocketService.RemoteProcedureCallMetadata(FramesUtility.UnwrapMetadata(new SequenceReader <byte>(metadata))));
 }
 public EchoServiceServer(RSocket.RSocket socket)
 {
     RSocketService.Register(socket, this);
 }
Example #3
0
        ////TODO Java style
        //socket.AddService(new MyEchoServiceServer());

        static public void AddService(this RSocketServer socket, IRSocketService service) => RSocketService.Register(socket, service);