Beispiel #1
0
 public DefaultStrategy(IMessageSerializer serializer, INamingConventions conventions, IBasicPropertiesProvider propertiesProvider, ITopologyProvider topologyProvider, IChannelFactory channelFactory)
 {
     _serializer                    = serializer;
     _propertiesProvider            = propertiesProvider;
     _topologyProvider              = topologyProvider;
     _channelFactory                = channelFactory;
     _errorExchangeCfg              = ExchangeConfiguration.Default;
     _errorExchangeCfg.ExchangeName = conventions.ErrorExchangeNamingConvention();
 }
Beispiel #2
0
 public DefaultStrategy(IMessageSerializer serializer, INamingConventions conventions, IBasicPropertiesProvider propertiesProvider, ITopologyProvider topologyProvider, IChannelFactory channelFactory)
 {
     _serializer = serializer;
     _propertiesProvider = propertiesProvider;
     _topologyProvider = topologyProvider;
     _channelFactory = channelFactory;
     _errorExchangeCfg = ExchangeConfiguration.Default;
     _errorExchangeCfg.ExchangeName = conventions.ErrorExchangeNamingConvention();
 }
Beispiel #3
0
 public Publisher(IChannelFactory channelFactory, ITopologyProvider topologyProvider, IMessageSerializer serializer, IMessageContextProvider <TMessageContext> contextProvider, IPublishAcknowledger acknowledger, IBasicPropertiesProvider propertiesProvider, RawRabbitConfiguration config)
 {
     _channelFactory     = channelFactory;
     _topologyProvider   = topologyProvider;
     _serializer         = serializer;
     _contextProvider    = contextProvider;
     _acknowledger       = acknowledger;
     _propertiesProvider = propertiesProvider;
     _config             = config;
 }
 public Publisher(IChannelFactory channelFactory, ITopologyProvider topologyProvider, IMessageSerializer serializer, IPublishAcknowledger acknowledger,
                  IBasicPropertiesProvider propertiesProvider, RabbitMqConfiguration config, ILogger <Publisher> logger)
 {
     _logger             = logger;
     _channelFactory     = channelFactory;
     _topologyProvider   = topologyProvider;
     _serializer         = serializer;
     _acknowledger       = acknowledger;
     _propertiesProvider = propertiesProvider;
     _config             = config;
 }
Beispiel #5
0
 public Requester(
     IChannelFactory channelFactory,
     IConsumerFactory consumerFactory,
     IMessageSerializer serializer,
     IMessageContextProvider <TMessageContext> contextProvider,
     IErrorHandlingStrategy errorStrategy,
     IBasicPropertiesProvider propertiesProvider,
     ITopologyProvider topologyProvider,
     RawRabbitConfiguration config)
 {
     _channelFactory            = channelFactory;
     _consumerFactory           = consumerFactory;
     _serializer                = serializer;
     _contextProvider           = contextProvider;
     _errorStrategy             = errorStrategy;
     _propertiesProvider        = propertiesProvider;
     _topologyProvider          = topologyProvider;
     _config                    = config;
     _responseDictionary        = new ConcurrentDictionary <string, ResponseCompletionSource>();
     _consumerCompletionSources = new ConcurrentDictionary <IModel, ConsumerCompletionSource>();
 }
Beispiel #6
0
 public Responder(
     IChannelFactory channelFactory,
     ITopologyProvider topologyProvider,
     IConsumerFactory consumerFactory,
     IMessageSerializer serializer,
     IMessageContextProvider <TMessageContext> contextProvider,
     IContextEnhancer contextEnhancer,
     IBasicPropertiesProvider propertyProvider,
     IErrorHandlingStrategy errorHandling,
     RawRabbitConfiguration config)
 {
     _channelFactory   = channelFactory;
     _topologyProvider = topologyProvider;
     _consumerFactory  = consumerFactory;
     _serializer       = serializer;
     _contextProvider  = contextProvider;
     _contextEnhancer  = contextEnhancer;
     _propertyProvider = propertyProvider;
     _errorHandling    = errorHandling;
     _config           = config;
     _subscriptions    = new List <ISubscription>();
 }
 public CustomErrorHandling(IMessageSerializer serializer, INamingConventions conventions, IBasicPropertiesProvider propertiesProvider, ITopologyProvider topologyProvider, IChannelFactory channelFactory) : base(serializer, conventions, propertiesProvider, topologyProvider, channelFactory)
 {
 }