Esempio n. 1
0
 public BackplaneMessageHandler(
     IContainerFacade containerFacade,
     IBackplaneMetrics backplaneMetrics,
     ILogger logger)
 {
     _container        = containerFacade;
     _backplaneMetrics = backplaneMetrics;
     _logger           = logger;
 }
        public RabbitBackplane(
            ILogger logger,
            IRabbitMqConnectionManager rabbitMqConnectionManager,
            IBackplaneMessageHandler backplaneMessageHandler,
            IBackplaneMetrics backplaneMetrics)
        {
            exchangeName             = $"{ServiceInfo.Name}{ServiceInfo.MajorVersion}";
            _backplaneMessageHandler = backplaneMessageHandler;

            _channelCache = new ChannelCache(rabbitMqConnectionManager, logger, exchangeName, ExchangeType.Fanout, false, backplaneMetrics.RecordNewBackplaneChannel);
        }