Ejemplo n.º 1
0
 static RSocketOptions()
 {
     Default = new RSocketOptions
     {
         KeepAlive            = TimeSpan.FromMinutes(1.0d),
         Lifetime             = TimeSpan.FromMinutes(3.0d),
         DataMimeType         = "binary",
         MetadataMimeType     = "binary",
         InitialRequestCredit = 10,
         NextRequestCredit    = 10
     };
 }
Ejemplo n.º 2
0
 public RSocketClient(IRSocketTransport transport, RSocketOptions options = default)
     : base(transport, options)
 {
     protocolHandler = new ClientProtocolHandler(Dispatcher, Transport.Output, options);
 }
Ejemplo n.º 3
0
 protected RSocket(IRSocketTransport transport, RSocketOptions options = default)
 {
     Dispatcher = new RSocketStreamDispatcher();
     Transport  = transport;
     Options    = options ?? RSocketOptions.Default;
 }