Esempio n. 1
0
 public ConsumerErrorStrategy(IUserRepository userRepository, IConnectionFactory connectionFactory, ITypeNameSerializer typeNameSerializer, ILogger <ConsumerErrorStrategy> logger)
 {
     _userRepository     = userRepository;
     _connectionFactory  = connectionFactory;
     _typeNameSerializer = typeNameSerializer;
     _logger             = logger;
 }
Esempio n. 2
0
        public ConsumerErrorStategy(
            ILoggerFactory loggerFactory,
            EasyNetQComponent.IConnectionFactory connectionFactory,
            ITypeNameSerializer typeNameSerializer
            )
        {
            this._logger = loggerFactory.CreateLogger(this.GetType().FullName);

            this.connectionFactory  = connectionFactory;
            this.typeNameSerializer = typeNameSerializer;
        }
Esempio n. 3
0
 public ConsumerErrorStrategy(IConnectionFactory connectionFactory, ISerializer serializer,
                              IEasyNetQLogger logger, IConventions conventions, ITypeNameSerializer typeNameSerializer)
     : base(connectionFactory, serializer, logger, conventions, typeNameSerializer)
 {
     this.logger             = logger;
     this.connectionFactory  = connectionFactory;
     this.typeNameSerializer = typeNameSerializer;
     this.serializer         = serializer;
     this.conventions        = conventions;
     this.maxAttemptsCount   = ServiceBusSection.Current.MaxConsumeRetry;
 }
 public CustomErrorStrategy(
     EasyNetQ.IConnectionFactory connectionFactory,
     ISerializer serializer,
     IEasyNetQLogger logger,
     IConventions conventions,
     ITypeNameSerializer typeNameSerializer)
 {
     this.connectionFactory = connectionFactory;
     this.serializer = serializer;
     this.logger = logger;
     this.conventions = conventions;
     this.typeNameSerializer = typeNameSerializer;
 }
Esempio n. 5
0
 public ConsumerErrorStrategy(
     EasyNetQ.IConnectionFactory connectionFactory,
     ISerializer serializer,
     IEasyNetQLogger logger,
     IConventions conventions,
     ITypeNameSerializer typeNameSerializer)
 {
     this.connectionFactory  = connectionFactory;
     this.serializer         = serializer;
     this.logger             = logger;
     this.conventions        = conventions;
     this.typeNameSerializer = typeNameSerializer;
 }
 public HandlerAuditIntercepter(
     ILogger logger,
     IConnectionFactory connectionFactory,
     ISerializer serializer,
     ITypeNameSerializer typeNameSerializer,
     IPersistCorrelation correlationPersister)
 {
     _logger               = logger;
     _connectionFactory    = connectionFactory;
     _serializer           = serializer;
     _typeNameSerializer   = typeNameSerializer;
     _correlationPersister = correlationPersister;
 }
        public RetryErrorStrategy(IConnectionFactory connectionFactory,
                                  ISerializer serializer,
                                  IEasyNetQLogger logger,
                                  IConventions conventions,
                                  ITypeNameSerializer typeNameSerializer)
        {
            _connectionFactory  = connectionFactory;
            _logger             = logger;
            _serializer         = serializer;
            _conventions        = conventions;
            _typeNameSerializer = typeNameSerializer;

            // Read the retries from the configuration, default to 0
            _flrMaxRetries = 0;
            int.TryParse(ConfigurationManager.AppSettings["Rabbit.FLR.MaxRetries"], out _flrMaxRetries);
        }