Table of Contents

Class InboundSpyBrokerBehavior

Namespace
Silverback.Testing
Assembly
Silverback.Integration.Testing.dll

Added at the end of the consumer pipeline, forwards the processed IInboundEnvelope to the IIntegrationSpy.

public class InboundSpyBrokerBehavior : IConsumerBehavior, IBrokerBehavior, ISorted
Inheritance
InboundSpyBrokerBehavior
Implements
Inherited Members

Constructors

InboundSpyBrokerBehavior(IntegrationSpy)

Initializes a new instance of the InboundSpyBrokerBehavior class.

public InboundSpyBrokerBehavior(IntegrationSpy integrationSpy)

Parameters

integrationSpy IntegrationSpy

The IntegrationSpy.

Properties

SortIndex

Gets the sort index.

public int SortIndex { get; }

Property Value

int

Methods

HandleAsync(ConsumerPipelineContext, ConsumerBehaviorHandler, CancellationToken)

Process, handles or transforms the message being consumed.

public ValueTask HandleAsync(ConsumerPipelineContext context, ConsumerBehaviorHandler next, CancellationToken cancellationToken)

Parameters

context ConsumerPipelineContext

The context that is passed along the behaviors pipeline.

next ConsumerBehaviorHandler

The next behavior in the pipeline.

cancellationToken CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

ValueTask

A ValueTask representing the asynchronous operation.