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();
 }
        protected virtual ExchangeDeclaration GetExchangeDeclaration(IPipeContext context)
        {
            var generalCfg = context?.GetClientConfiguration()?.Exchange;

            return(new ExchangeDeclaration(generalCfg)
            {
                Name = _conventions.ErrorExchangeNamingConvention()
            });
        }
Beispiel #3
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();
 }