Class ActivitySource<T>

Namespace
Cratis.Traces
Assembly
Cratis.Fundamentals.dll

Represents a typed ActivitySource.

public class ActivitySource<T> : IActivitySource<T>

Type Parameters

T

Type the activity source is for.

Inheritance
ActivitySource<T>
Implements
Inherited Members
Extension Methods

Remarks

Initializes a new instance of the ActivitySource<T> class.

Constructors

ActivitySource()

Initializes a new instance of the ActivitySource<T> class.

public ActivitySource()

ActivitySource(ActivitySource)

Initializes a new instance of the ActivitySource<T> class.

public ActivitySource(ActivitySource activitySource)

Parameters

activitySource ActivitySource

The actual activity source to use.

ActivitySource(IServiceProvider, string?)

Initializes a new instance of the ActivitySource<T> class.

[ActivatorUtilitiesConstructor]
public ActivitySource(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