This class subclasses the Connection class to support serialization.
Inheritance: Connection, IEncodedConnection, IDisposable
Example #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;
 }
Example #2
0
 internal EncodedHandlerWrapper(EncodedConnection c, EventHandler<EncodedMessageEventArgs> handler)
 {
     this.mh = handler;
     this.c = c;
 }
Example #3
0
 internal EncodedHandlerWrapper(EncodedConnection encc, EventHandler <EncodedMessageEventArgs> handler)
 {
     mh = handler;
     c  = encc;
 }