Beispiel #1
0
 public RedisInterprocessMessageBroadcaster(IAppRedisConfiguration configuration,
                                            IInterprocessIdentity interprocessIdentity, ILogger logger)
 {
     _configuration        = configuration;
     _interprocessIdentity = interprocessIdentity;
     _logger = logger;
 }
 public RedisInterprocessMessageReceiver(IAppRedisConfiguration configuration,
                                         IInterprocessIdentity interprocessIdentity,
                                         IMessageDeliverer messageDeliverer, ILogger logger)
 {
     _configuration        = configuration;
     _interprocessIdentity = interprocessIdentity;
     _messageDeliverer     = messageDeliverer;
     _logger   = logger;
     _client   = new StackExchangeRedisCacheClient(new NewtonsoftSerializer(), _configuration.ToRedisConfiguration());
     _handlers = new Dictionary <Type, MessageReceivedHandler>();
 }