示例#1
0
 public Sender(
     IQueueEndpointProvider queueEndpointProvider, 
     RabbitMqFactory rabbitMqFactory, 
     ChannelConfigurator channelConfiguratior)
     : this(queueEndpointProvider, rabbitMqFactory, channelConfiguratior, RabbitMqLogger.NullLogger)
 {
 }
 public NoneBlockingReceiver(
     IQueueEndpointProvider queueEndpointProvider, 
     RabbitMqFactory rabbitMqFactory,
     ChannelConfigurator channelConfigurator,
     IErrorHandler errorHandler)
     : this(queueEndpointProvider, rabbitMqFactory, channelConfigurator, errorHandler, RabbitMqLogger.NullLogger)
 {
 }
示例#3
0
 public ReceiveListener(
     IQueueEndpointProvider queueEndpointProvider,
     RabbitMqFactory rabbitMqFactory,
     ChannelConfigurator channelConfigurator,
     IErrorHandler errorHandler,
     RabbitMqLogger logger)
     : base(queueEndpointProvider, rabbitMqFactory, channelConfigurator, errorHandler, logger)
 {
 }
 public NoneBlockingReceiver(
     IQueueEndpointProvider queueEndpointProvider,
     RabbitMqFactory rabbitMqFactory,
     ChannelConfigurator channelConfigurator,
     IErrorHandler errorHandler,
     RabbitMqLogger logger)
     : base(queueEndpointProvider, rabbitMqFactory, channelConfigurator, errorHandler, logger)
 {
     _logger = logger;
 }
示例#5
0
 public ErrorHandler(
     IQueueEndpointProvider queueEndpointProvider,
     RabbitMqFactory rabbitMqFactory,
     ChannelConfigurator channelConfiguratior,
     RabbitMqLogger logger)
 {
     _queueEndpointProvider = queueEndpointProvider;
     _rabbitMqFactory = rabbitMqFactory;
     _channelConfiguratior = channelConfiguratior;
     _logger = logger;
 }
示例#6
0
 protected Receiver(
     IQueueEndpointProvider queueEndpointProvider, 
     RabbitMqFactory rabbitMqFactory, 
     ChannelConfigurator channelConfigurator,
     IErrorHandler errorHandler,
     RabbitMqLogger logger)
 {
     QueueEndpointProvider = queueEndpointProvider;
     RabbitMqFactory = rabbitMqFactory;
     ChannelConfigurator = channelConfigurator;
     ErrorHandler = errorHandler;
     Logger = logger;
 }
示例#7
0
 protected void SetupQueueEndpointProvider(string endpointName, string virtualHost, string queueName)
 {
     SetupEndpoint(endpointName, virtualHost, queueName);
     QueueEndpointProvider = MockRepository.GenerateStub<IQueueEndpointProvider>();
     QueueEndpointProvider
         .Stub(x => x.GetEndpointByName(endpointName))
         .Return(QueueEndpoint);
     QueueEndpointProvider
         .Stub(x => x.GetHostName())
         .Return(HostName);
 }