Class RawOutboundSpyBrokerBehavior
- Namespace
- Silverback.Testing
- Assembly
- Silverback.Integration.Testing.dll
Added at the very end of the producer pipeline, forwards the produced IOutboundEnvelope to the IIntegrationSpy.
public class RawOutboundSpyBrokerBehavior : IProducerBehavior, IBrokerBehavior, ISorted
- Inheritance
-
RawOutboundSpyBrokerBehavior
- Implements
- Inherited Members
Constructors
RawOutboundSpyBrokerBehavior(IntegrationSpy)
Initializes a new instance of the RawOutboundSpyBrokerBehavior class.
public RawOutboundSpyBrokerBehavior(IntegrationSpy integrationSpy)
Parameters
integrationSpyIntegrationSpyThe IntegrationSpy.
Properties
SortIndex
Gets the sort index.
public int SortIndex { get; }
Property Value
Methods
HandleAsync(ProducerPipelineContext, ProducerBehaviorHandler, CancellationToken)
Process, handles or transforms the message being produced.
public ValueTask HandleAsync(ProducerPipelineContext context, ProducerBehaviorHandler next, CancellationToken cancellationToken)
Parameters
contextProducerPipelineContextThe context that is passed along the behaviors pipeline.
nextProducerBehaviorHandlerThe next behavior in the pipeline.
cancellationTokenCancellationTokenThe cancellation token that can be used to cancel the operation.