Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="endpoint"></param>
 /// <param name="socket"></param>
 /// <param name="protocol"></param>
 /// <param name="logger"></param>
 public StompSocketTransport(IPEndPoint endpoint, Socket socket, StompBinaryProtocol protocol, ILogger logger) :
     base(protocol, logger)
 {
     this.endpoint = endpoint ?? throw new ArgumentNullException(nameof(endpoint));
     this.socket   = socket ?? throw new ArgumentNullException(nameof(socket));
     this.protocol = protocol ?? throw new ArgumentNullException(nameof(protocol));
     this.logger   = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="protocol"></param>
 /// <param name="logger"></param>
 protected StompPipeTransport(StompBinaryProtocol protocol, ILogger logger) :
     base(logger)
 {
     this.protocol = protocol ?? throw new ArgumentNullException(nameof(protocol));
     this.logger   = logger ?? throw new ArgumentNullException(nameof(logger));
 }