Exemplo n.º 1
0
 internal override AggregateConsumingResult Reply(IInboundChannel inboundChannel,
                                                  IOutboundChannel outboundChannel,
                                                  IFallbackStrategy fallbackStrategy)
 {
     fallbackStrategy.Apply(outboundChannel, Message);
     return(base.Reply(inboundChannel, outboundChannel, fallbackStrategy));
 }
Exemplo n.º 2
0
 internal override AggregateConsumingResult Reply(IInboundChannel inboundChannel,
                                                  IOutboundChannel outboundChannel,
                                                  IFallbackStrategy fallbackStrategy)
 {
     Message.Requeue(inboundChannel);
     return(this);
 }
Exemplo n.º 3
0
 internal virtual AggregateConsumingResult Reply(IInboundChannel inboundChannel,
                                                 IOutboundChannel outboundChannel,
                                                 IFallbackStrategy fallbackStrategy)
 {
     Message.Acknowledge(inboundChannel);
     return this;
 }
Exemplo n.º 4
0
 internal virtual AggregateConsumingResult Reply(IInboundChannel inboundChannel,
                                                 IOutboundChannel outboundChannel,
                                                 IFallbackStrategy fallbackStrategy)
 {
     Message.Acknowledge(inboundChannel);
     return(this);
 }
Exemplo n.º 5
0
 internal override AggregateConsumingResult Reply(IInboundChannel inboundChannel,
                                                  IOutboundChannel outboundChannel,
                                                  IFallbackStrategy fallbackStrategy)
 {
     Message.Requeue(inboundChannel);
     return this;
 }
Exemplo n.º 6
0
 internal AtMostOnceConsumerWrapper(IInboundChannel inboundChannel,
                                    IOutboundChannel outboundChannel,
                                    Queue queue,
                                    IConsumedMessageBuilder builder,
                                    ConsumingConfiguration configuration)
     : base(inboundChannel, outboundChannel, queue, builder, configuration)
 {
 }
Exemplo n.º 7
0
 internal AtMostOnceConsumerWrapper(IInboundChannel inboundChannel,
                                    IOutboundChannel outboundChannel,
                                    Queue queue,
                                    IConsumedMessageBuilder builder,
                                    ConsumingConfiguration configuration)
     : base(inboundChannel, outboundChannel, queue, builder, configuration)
 {
 }
Exemplo n.º 8
0
 public FakeConsumerBase(IInboundChannel inboundChannel,
                         IOutboundChannel outboundChannel,
                         Queue queue,
                         IConsumedMessageBuilder builder,
                         ConsumingConfiguration configuration)
     : base(inboundChannel, outboundChannel, queue, builder, configuration)
 {
 }
Exemplo n.º 9
0
 public FakeConsumerBase(IInboundChannel inboundChannel,
                         IOutboundChannel outboundChannel,
                         Queue queue,
                         IConsumedMessageBuilder builder,
                         ConsumingConfiguration configuration)
     : base(inboundChannel, outboundChannel, queue, builder, configuration)
 {
 }
Exemplo n.º 10
0
 internal override ConsumerBase BuildConsumer(IInboundChannel inboundChannel, IOutboundChannel outboundChannel)
 {
     return(new LoggedAtLeastOnceConsumer(inboundChannel,
                                          outboundChannel,
                                          Queue,
                                          Builder,
                                          Configuration,
                                          LogBuilder()));
 }
Exemplo n.º 11
0
 internal override ConsumerBase BuildConsumer(IInboundChannel inboundChannel, IOutboundChannel outboundChannel)
 {
     return new LoggedAtLeastOnceConsumer(inboundChannel,
                                          outboundChannel,
                                          Queue,
                                          Builder,
                                          Configuration,
                                          LogBuilder());
 }
Exemplo n.º 12
0
 internal LoggedAtLeastOnceConsumer(IInboundChannel inboundChannel,
                                    IOutboundChannel outboundChannel,
                                    Queue queue,
                                    IConsumedMessageBuilder builder,
                                    ConsumingConfiguration configuration,
                                    ILog log)
     : base(inboundChannel, outboundChannel, queue, builder, configuration)
 {
     _log = log;
 }
Exemplo n.º 13
0
 internal LoggedAtMostOnceConsumer(IInboundChannel inboundChannel,
                                   IOutboundChannel outboundChannel,
                                   Queue queue,
                                   IConsumedMessageBuilder builder,
                                   ConsumingConfiguration configuration,
                                   ILog log)
     : base(inboundChannel, outboundChannel, queue, builder, configuration)
 {
     _log = log;
 }
Exemplo n.º 14
0
        protected internal ConsumerBase(IInboundChannel inboundChannel,
                                        IOutboundChannel outboundChannel,
                                        Queue queue,
                                        IConsumedMessageBuilder builder,
                                        ConsumingConfiguration configuration)
        {
            InboundChannel = inboundChannel;
            OutboundChannel = outboundChannel;
            _queue = queue;
            _builder = builder;
            Configuration = configuration;

            ConsumerCancelled += OnConsumerCancelled;
        }
Exemplo n.º 15
0
        protected internal ConsumerBase(IInboundChannel inboundChannel,
                                        IOutboundChannel outboundChannel,
                                        Queue queue,
                                        IConsumedMessageBuilder builder,
                                        ConsumingConfiguration configuration)
        {
            InboundChannel  = inboundChannel;
            OutboundChannel = outboundChannel;
            _queue          = queue;
            _builder        = builder;
            Configuration   = configuration;

            ConsumerCancelled += OnConsumerCancelled;
        }
Exemplo n.º 16
0
 internal override AggregateConsumingResult Reply(IInboundChannel inboundChannel,
                                                  IOutboundChannel outboundChannel,
                                                  IFallbackStrategy fallbackStrategy)
 {
     fallbackStrategy.Apply(outboundChannel, Message);
     return base.Reply(inboundChannel, outboundChannel, fallbackStrategy);
 }
Exemplo n.º 17
0
 /// <summary>
 /// Required by ILogBus
 /// </summary>
 public void AddInboundChannel(IInboundChannel channel)
 {
     _target.AddInboundChannel(channel);
 }
Exemplo n.º 18
0
 /// <summary>
 /// Required by ILogBus
 /// </summary>
 public void RemoveInboundChannel(IInboundChannel channel)
 {
     _target.RemoveInboundChannel(channel);
 }
Exemplo n.º 19
0
 internal abstract ConsumerBase BuildConsumer(IInboundChannel inboundChannel, IOutboundChannel outboundChannel);
Exemplo n.º 20
0
 internal void Requeue(IInboundChannel inboundChannel)
 {
     inboundChannel.NegativeAcknowledge(Args.DeliveryTag, true);
 }
Exemplo n.º 21
0
 internal void Acknowledge(IInboundChannel channel)
 {
     channel.Acknowledge(Args.DeliveryTag);
 }
Exemplo n.º 22
0
 internal abstract ConsumerBase BuildConsumer(IInboundChannel inboundChannel, IOutboundChannel outboundChannel);