Пример #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MessageSender" /> class.
 /// </summary>
 /// <param name="messageWriter">The message writer.</param>
 /// <param name="connectionStore">The connection store.</param>
 /// <autogeneratedoc />
 public MessageSender(IMessageWriter <SixtyNineSendibleMessage> messageWriter, ConnectionStore connectionStore)
 {
     _messageWriter   = messageWriter;
     _connectionStore = connectionStore;
     _semaphore       = new SemaphoreSlim(1);
 }
Пример #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MessageHandler" /> class.
 /// </summary>
 /// <param name="connectionStore">The connection store.</param>
 /// <param name="logger">The logger.</param>
 /// <autogeneratedoc />
 public MessageHandler(ConnectionStore connectionStore, ILogger <MessageHandler> logger)
 {
     _connectionStore = connectionStore;
     _logger          = logger;
 }