Example #1
0
 public ZmqTransport(IZmqTransportConfiguration configuration, ZmqSocketOptions socketOptions, IZmqOutboundSocketErrorHandler errorHandler)
 {
     _configuration             = configuration;
     _errorHandler              = errorHandler;
     _configuredInboundEndPoint = new ZmqEndPoint(configuration.InboundEndPoint);
     SocketOptions              = socketOptions;
 }
Example #2
0
 public ZmqOutboundSocket(ZmqContext context, PeerId peerId, string endPoint, ZmqSocketOptions options, IZmqOutboundSocketErrorHandler errorHandler)
 {
     _context      = context;
     _options      = options;
     _errorHandler = errorHandler;
     PeerId        = peerId;
     EndPoint      = endPoint;
 }