Class ActivityScope<T>

Namespace
Cratis.Traces
Assembly
Cratis.Fundamentals.dll

Represents a scope for an activity.

public class ActivityScope<T> : IActivityScope<T>, IDisposable

Type Parameters

T

Type the scope is for.

Inheritance
ActivityScope<T>
Implements
Inherited Members
Extension Methods

Remarks

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

Constructors

ActivityScope(Activity?)

Represents a scope for an activity.

public ActivityScope(Activity? activity)

Parameters

activity Activity

The activity associated with the scope.

Remarks

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

Properties

Activity

Gets the Activity associated with the scope.

public Activity? Activity { get; }

Property Value

Activity

Methods

Dispose()

public void Dispose()