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
TType 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
activityActivityThe 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
Methods
Dispose()
public void Dispose()