Class ActivityProducerBehavior
Starts an System.Diagnostics.Activity and adds the tracing information to the message headers.
Inheritance
System.Object
ActivityProducerBehavior
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Silverback.Messaging.Diagnostics
Assembly: Silverback.Integration.dll
Syntax
public class ActivityProducerBehavior : IProducerBehavior, IBrokerBehavior, ISorted
Constructors
| Improve this doc View sourceActivityProducerBehavior(IActivityEnricherFactory)
Initializes a new instance of the ActivityProducerBehavior class.
Declaration
public ActivityProducerBehavior(IActivityEnricherFactory activityEnricherFactory)
Parameters
Type | Name | Description |
---|---|---|
IActivityEnricherFactory | activityEnricherFactory | The Factory to create the activity enrichers. |
Properties
| Improve this doc View sourceSortIndex
Declaration
public int SortIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this doc View sourceHandleAsync(ProducerPipelineContext, ProducerBehaviorHandler)
Declaration
public async Task HandleAsync(ProducerPipelineContext context, ProducerBehaviorHandler next)
Parameters
Type | Name | Description |
---|---|---|
ProducerPipelineContext | context | |
ProducerBehaviorHandler | next |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |