Пример #1
0
 public Subscriber(
     IChannelFactory channelFactory,
     IConsumerFactory consumerFactory,
     ITopologyProvider topologyProvider,
     IMessageSerializer serializer,
     IMessageContextProvider <TMessageContext> contextProvider,
     IContextEnhancer contextEnhancer,
     IErrorHandlingStrategy errorHandling,
     RawRabbitConfiguration config)
 {
     _channelFactory   = channelFactory;
     _consumerFactory  = consumerFactory;
     _topologyProvider = topologyProvider;
     _serializer       = serializer;
     _contextProvider  = contextProvider;
     _contextEnhancer  = contextEnhancer;
     _errorHandling    = errorHandling;
     _config           = config;
     _subscriptions    = new List <ISubscription>();
 }