Class RawInboundSpyBrokerBehavior
- Namespace
- Silverback.Testing
- Assembly
- Silverback.Integration.Testing.dll
Added at the very beginning of the consumer pipeline, forwards the untouched IRawInboundEnvelope to the IIntegrationSpy.
public class RawInboundSpyBrokerBehavior : IConsumerBehavior, IBrokerBehavior, ISorted
- Inheritance
-
RawInboundSpyBrokerBehavior
- Implements
- Inherited Members
Constructors
RawInboundSpyBrokerBehavior(IntegrationSpy)
Initializes a new instance of the RawInboundSpyBrokerBehavior class.
public RawInboundSpyBrokerBehavior(IntegrationSpy integrationSpy)
Parameters
integrationSpyIntegrationSpyThe IntegrationSpy.
Properties
SortIndex
Gets the sort index.
public int SortIndex { get; }
Property Value
Methods
HandleAsync(ConsumerPipelineContext, ConsumerBehaviorHandler, CancellationToken)
Process, handles or transforms the message being consumed.
public ValueTask HandleAsync(ConsumerPipelineContext context, ConsumerBehaviorHandler next, CancellationToken cancellationToken)
Parameters
contextConsumerPipelineContextThe context that is passed along the behaviors pipeline.
nextConsumerBehaviorHandlerThe next behavior in the pipeline.
cancellationTokenCancellationTokenThe cancellation token that can be used to cancel the operation.