This class subclasses the Connection class to support serialization.
Inheritance: Connection, IEncodedConnection, IDisposable
Ejemplo n.º 1
0
 /// <summary>
 /// CreateEncodedConnection to the NATs server using the provided options.
 /// </summary>
 /// <param name="opts">NATs client options</param>
 /// <returns>A new connection to the NATS server</returns>
 public IEncodedConnection CreateEncodedConnection(Options opts)
 {
     EncodedConnection nc = new EncodedConnection(opts);
     nc.connect();
     return nc;
 }
Ejemplo n.º 2
0
 internal EncodedHandlerWrapper(EncodedConnection c, EventHandler<EncodedMessageEventArgs> handler)
 {
     this.mh = handler;
     this.c = c;
 }
Ejemplo n.º 3
0
 internal EncodedHandlerWrapper(EncodedConnection encc, EventHandler <EncodedMessageEventArgs> handler)
 {
     mh = handler;
     c  = encc;
 }