PostSharp6.3/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace/ICustom­Activity­Logging­Context Interface

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: 6.3.14.0 (6.3.14.0)
Syntax
C#
public interface ICustomActivityLoggingContext : ILoggingContext, 
	IDisposable

The ICustomActivityLoggingContext type exposes the following members.

Properties
  NameDescription
Public propertyCustomActivityKind
Gets the kind of LogActivity represented by the current context.
Public propertyIsAsync
Determines whether the context represents an async method or a custom activity in an async method.
(Inherited from ILoggingContext.)
Public propertyIsDisposed
Determines whether the context is currently disposed (contexts can be recycled, therefore the disposed state is not the final state).
(Inherited from ILoggingContext.)
Public propertyRecycleId
Gets an integer that is incremented every time the current instance is being recycled.
(Inherited from ILoggingContext.)
Public propertyStartTimestamp
Gets the timestamp (given by CurrentTimestamp) of the moment when the activity started.
Public propertySyntheticId
Gets a cross-process globally unique identifier for the current context.
(Inherited from ILoggingContext.)
Methods
  NameDescription
Public methodForEachProperty(LoggingPropertyVisitor<Object>, Boolean)
Invokes a delegate for each property defined in the current logging context and optionally in its ancestor contexts.
(Inherited from ILoggingContext.)
Public methodForEachProperty<T>(LoggingPropertyVisitor<T>, T, Boolean)
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.)
See Also