public RedisProcessor(RedisProcessorContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            ChannelOrKey = context.ChannelOrKey;
        }
        public RedisProcessor(RedisProcessorContext context, TraceWriter trace)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            ChannelOrKey = context.ChannelOrKey;
            _trace = trace;
        }
Пример #3
0
        public RedisProcessor(RedisProcessorContext context, TraceWriter trace)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            ChannelOrKey = context.ChannelOrKey;
            _trace       = trace;
        }
 private RedisProcessor CreateProcessor(string channelName)
 {
     var context = new RedisProcessorContext(channelName);
     return new RedisProcessor(context, _trace);
 }
        private RedisProcessor CreateProcessor(string channelName)
        {
            var context = new RedisProcessorContext(channelName);

            return(new RedisProcessor(context, _trace));
        }