Ejemplo n.º 1
0
 internal override AggregateConsumingResult Reply(IInboundChannel inboundChannel,
                                                  IOutboundChannel outboundChannel,
                                                  IFallbackStrategy fallbackStrategy)
 {
     fallbackStrategy.Apply(outboundChannel, Message);
     return(base.Reply(inboundChannel, outboundChannel, fallbackStrategy));
 }
Ejemplo n.º 2
0
 internal override AggregateConsumingResult Reply(IInboundChannel inboundChannel,
                                                  IOutboundChannel outboundChannel,
                                                  IFallbackStrategy fallbackStrategy)
 {
     Message.Requeue(inboundChannel);
     return(this);
 }
Ejemplo n.º 3
0
 internal virtual AggregateConsumingResult Reply(IInboundChannel inboundChannel,
                                                 IOutboundChannel outboundChannel,
                                                 IFallbackStrategy fallbackStrategy)
 {
     Message.Acknowledge(inboundChannel);
     return this;
 }
Ejemplo n.º 4
0
 internal virtual AggregateConsumingResult Reply(IInboundChannel inboundChannel,
                                                 IOutboundChannel outboundChannel,
                                                 IFallbackStrategy fallbackStrategy)
 {
     Message.Acknowledge(inboundChannel);
     return(this);
 }
Ejemplo n.º 5
0
 internal override AggregateConsumingResult Reply(IInboundChannel inboundChannel,
                                                  IOutboundChannel outboundChannel,
                                                  IFallbackStrategy fallbackStrategy)
 {
     Message.Requeue(inboundChannel);
     return this;
 }
Ejemplo n.º 6
0
 internal AtMostOnceConsumerWrapper(IInboundChannel inboundChannel,
                                    IOutboundChannel outboundChannel,
                                    Queue queue,
                                    IConsumedMessageBuilder builder,
                                    ConsumingConfiguration configuration)
     : base(inboundChannel, outboundChannel, queue, builder, configuration)
 {
 }
Ejemplo n.º 7
0
 internal AtMostOnceConsumerWrapper(IInboundChannel inboundChannel,
                                    IOutboundChannel outboundChannel,
                                    Queue queue,
                                    IConsumedMessageBuilder builder,
                                    ConsumingConfiguration configuration)
     : base(inboundChannel, outboundChannel, queue, builder, configuration)
 {
 }
Ejemplo n.º 8
0
 public FakeConsumerBase(IInboundChannel inboundChannel,
                         IOutboundChannel outboundChannel,
                         Queue queue,
                         IConsumedMessageBuilder builder,
                         ConsumingConfiguration configuration)
     : base(inboundChannel, outboundChannel, queue, builder, configuration)
 {
 }
Ejemplo n.º 9
0
 public FakeConsumerBase(IInboundChannel inboundChannel,
                         IOutboundChannel outboundChannel,
                         Queue queue,
                         IConsumedMessageBuilder builder,
                         ConsumingConfiguration configuration)
     : base(inboundChannel, outboundChannel, queue, builder, configuration)
 {
 }
Ejemplo n.º 10
0
 internal override ConsumerBase BuildConsumer(IInboundChannel inboundChannel, IOutboundChannel outboundChannel)
 {
     return(new LoggedAtLeastOnceConsumer(inboundChannel,
                                          outboundChannel,
                                          Queue,
                                          Builder,
                                          Configuration,
                                          LogBuilder()));
 }
Ejemplo n.º 11
0
 internal override ConsumerBase BuildConsumer(IInboundChannel inboundChannel, IOutboundChannel outboundChannel)
 {
     return new LoggedAtLeastOnceConsumer(inboundChannel,
                                          outboundChannel,
                                          Queue,
                                          Builder,
                                          Configuration,
                                          LogBuilder());
 }
Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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;
        }
Ejemplo 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;
        }
Ejemplo n.º 16
0
 internal override AggregateConsumingResult Reply(IInboundChannel inboundChannel,
                                                  IOutboundChannel outboundChannel,
                                                  IFallbackStrategy fallbackStrategy)
 {
     fallbackStrategy.Apply(outboundChannel, Message);
     return base.Reply(inboundChannel, outboundChannel, fallbackStrategy);
 }
Ejemplo n.º 17
0
 /// <summary>
 /// Required by ILogBus
 /// </summary>
 public void AddInboundChannel(IInboundChannel channel)
 {
     _target.AddInboundChannel(channel);
 }
Ejemplo n.º 18
0
 /// <summary>
 /// Required by ILogBus
 /// </summary>
 public void RemoveInboundChannel(IInboundChannel channel)
 {
     _target.RemoveInboundChannel(channel);
 }
Ejemplo n.º 19
0
 internal abstract ConsumerBase BuildConsumer(IInboundChannel inboundChannel, IOutboundChannel outboundChannel);
Ejemplo n.º 20
0
 internal void Requeue(IInboundChannel inboundChannel)
 {
     inboundChannel.NegativeAcknowledge(Args.DeliveryTag, true);
 }
Ejemplo n.º 21
0
 internal void Acknowledge(IInboundChannel channel)
 {
     channel.Acknowledge(Args.DeliveryTag);
 }
Ejemplo n.º 22
0
 internal abstract ConsumerBase BuildConsumer(IInboundChannel inboundChannel, IOutboundChannel outboundChannel);