Class ActivityConsumerBehavior
- Namespace
- Silverback.Messaging.Diagnostics
- Assembly
- Silverback.Integration.dll
Starts an Activity with the tracing information from the message headers.
public class ActivityConsumerBehavior : IConsumerBehavior, IBrokerBehavior, ISorted
- Inheritance
-
ActivityConsumerBehavior
- Implements
- Inherited Members
Constructors
ActivityConsumerBehavior(IActivityEnricherFactory)
Initializes a new instance of the ActivityConsumerBehavior class.
public ActivityConsumerBehavior(IActivityEnricherFactory activityEnricherFactory)
Parameters
activityEnricherFactoryIActivityEnricherFactoryThe IActivityEnricherFactory to resolve the ActivityEnricher.
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.