PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace / Async­Logging­Context Class / Async­Logging­Context Properties

AsyncLoggingContext Properties

The AsyncLoggingContext type exposes the following members.

Properties
  NameDescription
Public propertyActivationContext
Gets the LoggingContext in which the current context was activated. If the current context has been resumed, ActivationContext refers to the context in which the context was resumed.
(Inherited from LoggingContext.)
Public propertyBackend
Gets the parent LoggingBackend of the current context.
(Inherited from LoggingContext.)
Public propertyCurrentTransaction
Gets the LoggingTransaction defined or inherited by the current context.
(Inherited from LoggingContext.)
Public propertyDefinedTransaction
Gets the LoggingTransaction defined by the current context.
(Inherited from LoggingContext.)
Public propertyDescription
Gets the description of the current context. The description is typically set by the LogRecordBuilder when building the opening record of a context.
(Inherited from LoggingContext.)
Public propertyEventData
Gets the LogEventData (i.e. the source of logging properties) associated with the current LoggingContext.
(Inherited from LoggingContext.)
Public propertyHierarchicalContextIdInfo
Exposes the IHierarchicalContextIdInfo for the current context. Used by SyntheticIdFormatter.
(Inherited from LoggingContext.)
Public propertyId
Gets or set the identifier of the current context. This value is created according to the strategy set in LoggingBackend.Options.ContextIdGenerationStrategy.
(Inherited from LoggingContext.)
Public propertyIdGenerationStrategy
Gets the ContextIdGenerationStrategy used to generate the Id property for the current context.
(Inherited from LoggingContext.)
Public propertyIndentLevel
Gets or sets the indentation level for the current context.
(Inherited from LoggingContext.)
Public propertyIsAsync
Determines whether the current LoggingContext represents an async method or an asynchronous custom activity.
(Overrides LoggingContext.IsAsync.)
Public propertyIsDisposed
Determines whether the current context has been disposed.
(Inherited from LoggingContext.)
Public propertyIsHidden
Determines whether the current LoggingContext is hidden. Hidden contexts may define properties but should not be rendered.
(Inherited from LoggingContext.)
Public propertyIsSharable
Determines whether the current LoggingContext can be accessed outside of its nominal lifetime (for instance after the method has completed or a custom activity has been closed). Since contexts can be pooled and reused, consumers must call the MakeSharable() method if they want to keep a reference to the LoggingContext and access it after its nominal lifetime has completed.
(Inherited from LoggingContext.)
Public propertyIsSuspended
Determines whether the current context is currently suspended (between a Suspend() and a Resume()).
(Inherited from SuspendableLoggingContext.)
Public propertyKind
Gets the kind of the current context.
(Inherited from LoggingContext.)
Public propertyMemberName
Gets the name of the method or property related to the current context.
(Inherited from LoggingContext.)
Public propertyParentContext Obsolete.
Gets the LoggingContext in which the current context was activated. Previously, this was the logical parent instead.
(Inherited from LoggingContext.)
Public propertyProperties Obsolete.
Gets the logging properties added with the associated activity.
(Inherited from LoggingContext.)
Public propertySource
Gets the LoggingTypeSource corresponding, typically, to the declaring type of the member associated to the current context.
(Inherited from LoggingContext.)
Public propertySyntheticId
Gets a cross-process globally unique identifier for the current LoggingContext. This value is created according to value of the LoggingBackend.Options.SyntheticIdFormatter property.
(Inherited from LoggingContext.)
Public propertySyntheticParentId
When this property returns a non-null value, the SyntheticId property shall use the value of the SyntheticParentId property as the parent identifier, instead of recursively building the synthetic identifier based on ParentContext. You can set this property when you open a custom activity by configuring the OpenActivityOptions object.
(Inherited from LoggingContext.)
Public propertySyntheticRootId
When this property returns a non-null value, the SyntheticId property shall return the same value as the SyntheticRootId property, instead of starting with the id of the parent context. You can set this property when you open a custom activity by configuring the OpenActivityOptions object.
(Inherited from LoggingContext.)
Public propertyThreadContext
Gets the ThreadLoggingContext for the thread in which the current LoggingContext is currently executed.
(Inherited from SuspendableLoggingContext.)
See Also