示例#1
0
        public QueueChannel(IServiceProvider serviceProvider, Channels.Channel <IMessage> channel, string name, ILogger logger = null)
            : base(serviceProvider, name, logger)
        {
            if (channel == null)
            {
                throw new ArgumentNullException(nameof(channel));
            }

            _channel = channel;
            Writer   = new QueueChannelWriter(this, logger);
            Reader   = new QueueChannelReader(this, logger);
        }
示例#2
0
        public QueueChannel(IApplicationContext context, Channels.Channel <IMessage> channel, string name, ILogger logger = null)
            : base(context, name, logger)
        {
            if (channel == null)
            {
                throw new ArgumentNullException(nameof(channel));
            }

            _channel = channel;
            Writer   = new QueueChannelWriter(this, logger);
            Reader   = new QueueChannelReader(this, logger);
        }
示例#3
0
 public QueueChannel(IServiceProvider serviceProvider, Channels.Channel <IMessage> channel, ILogger logger = null)
     : this(serviceProvider, channel, null, logger)
 {
 }
示例#4
0
 public QueueChannel(IApplicationContext context, Channels.Channel <IMessage> channel, ILogger logger = null)
     : this(context, channel, null, logger)
 {
 }