ICustomActivityLoggingContext Interface |
An ILoggingContext that represents a custom activity (LogActivity).
Namespace: PostSharp.Patterns.Diagnostics.Contexts
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public interface ICustomActivityLoggingContext : ILoggingContext, IDisposable
The ICustomActivityLoggingContext type exposes the following members.
Name | Description | |
---|---|---|
CustomActivityKind |
Gets the kind of LogActivity represented by the current context.
| |
IsAsync |
Determines whether the context represents an async method or a custom activity in an async method.
(Inherited from ILoggingContext.) | |
IsDisposed |
Determines whether the context is currently disposed (contexts can be recycled, therefore the
disposed state is not the final state).
(Inherited from ILoggingContext.) | |
RecycleId |
Gets an integer that is incremented every time the current instance is being recycled.
(Inherited from ILoggingContext.) | |
StartTimestamp |
Gets the timestamp (given by CurrentTimestamp) of the moment when the activity started.
| |
SyntheticId |
Gets a cross-process globally unique identifier for the current context.
(Inherited from ILoggingContext.) |
Name | Description | |
---|---|---|
ForEachProperty(LoggingPropertyVisitor<Object>, Boolean) | Obsolete.
Invokes a delegate for each property defined in the current logging context and optionally in its ancestor contexts.
(Inherited from ILoggingContext.) | |
ForEachProperty<T>(LoggingPropertyVisitor<T>, T, Boolean) | Obsolete.
Invokes a delegate for each property defined in the current logging context and optionally in its ancestor contexts, and specifies passes a state object
to the delegate.
(Inherited from ILoggingContext.) |