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); }
////TODO Java style //socket.AddService(new MyEchoServiceServer()); static public void AddService(this RSocketServer socket, IRSocketService service) => RSocketService.Register(socket, service);