Class KeyedActivitySource<T>

Namespace
Cratis.Traces
Assembly
Cratis.Fundamentals.dll

Represents a keyed typed ActivitySource.

public class KeyedActivitySource<T> : IActivitySource<T>

Type Parameters

T

Type the activity source is for.

Inheritance
KeyedActivitySource<T>
Implements
Inherited Members
Extension Methods

Constructors

KeyedActivitySource(IServiceProvider, string?)

Represents a keyed typed ActivitySource.

public KeyedActivitySource(IServiceProvider serviceProvider, string? key = null)

Parameters

serviceProvider IServiceProvider

The IServiceProvider used for resolving keyed services.

key string

The key used when resolving the service.

Properties

ActualSource

Gets the actual ActivitySource instance.

public ActivitySource ActualSource { get; }

Property Value

ActivitySource