Ejemplo n.º 1
0
 public ConsumerErrorStrategy(IUserRepository userRepository, IConnectionFactory connectionFactory, ITypeNameSerializer typeNameSerializer, ILogger <ConsumerErrorStrategy> logger)
 {
     _userRepository     = userRepository;
     _connectionFactory  = connectionFactory;
     _typeNameSerializer = typeNameSerializer;
     _logger             = logger;
 }
Ejemplo 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;
        }
Ejemplo 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;
 }
Ejemplo 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);
        }