Пример #1
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="options"></param>
 /// <param name="logger"></param>
 protected StompConnectionFactory(StompConnectionOptions options, ILogger logger)
 {
     this.options = options ?? throw new System.ArgumentNullException(nameof(options));
     this.logger  = logger ?? throw new System.ArgumentNullException(nameof(logger));
 }
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="logger"></param>
 public StompTcpConnectionFactory(StompConnectionOptions options, ILogger logger) : base(ProtocolType.Tcp, options, logger)
 {
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="protocolType"></param>
 /// <param name="options"></param>
 /// <param name="logger"></param>
 public StompSocketConnectionFactory(ProtocolType protocolType, StompConnectionOptions options, ILogger logger) : base(options, logger)
 {
     this.protocolType = protocolType;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="options"></param>
 /// <param name="configure"></param>
 /// <param name="logger"></param>
 public StompWebSocketConnectionFactory(StompConnectionOptions options, Action <ClientWebSocketOptions> configure, ILogger logger) :
     base(options, logger)
 {
     this.configure = configure ?? throw new ArgumentNullException(nameof(configure));
     this.logger    = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="transport"></param>
 /// <param name="options"></param>
 /// <param name="logger"></param>
 public StompConnection(StompTransport transport, StompConnectionOptions options, ILogger logger)
 {
     this.transport = transport ?? throw new ArgumentNullException(nameof(transport));
     this.options   = options ?? throw new ArgumentNullException(nameof(options));
     this.logger    = logger ?? throw new ArgumentNullException(nameof(logger));
 }