PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace / Async­Custom­Activity­Logging­Context Class / Async­Custom­Activity­Logging­Context Methods

AsyncCustomActivityLoggingContext Methods

The AsyncCustomActivityLoggingContext type exposes the following members.

Public methodCreateCorrelationCookie
Creates a cookie that can be used to correlate, using the SetCorrelation(CorrelationCookie) method, another context to the current context.
(Inherited from LoggingContext.)
Public methodDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from LoggingContext.)
Protected methodDispose(Boolean)
Disposes the current object.
(Inherited from SuspendableLoggingContext.)
Public methodGetCustomRecordBuilder
Gets a LogRecordBuilder for the current context to build a custom record.
(Inherited from LoggingContext.)
Public methodGetRecordBuilder
Gets a LogRecordBuilder for the current context to build a standard record for a given method.
(Inherited from LoggingContext.)
Public methodMakeSharable
Allows the current context to be shared beyond its normal lifecycle by preventing it from being returned to the pool.
(Inherited from LoggingContext.)
Protected methodOnResume (Inherited from AsyncLoggingContext.)
Protected methodOnSuspend (Inherited from AsyncLoggingContext.)
Public methodOpen
Opens the current context.
Protected methodReset
Resets the current context to its initial, uninitialized state. This method is called by the Dispose() method.
(Inherited from LoggingContext.)
Public methodResume (Inherited from AsyncLoggingContext.)
Public methodResumeConditional
Resume the current context, but only if it is currently suspended.
(Inherited from SuspendableLoggingContext.)
Public methodSetCorrelation
Associates the current context with another context.
(Inherited from LoggingContext.)
Public methodSetWaitDependency
Sets the wait dependency for the current context, i.e. sets a representation of what the current context is waiting for. This operation is available only in custom contexts.
(Overrides LoggingContext.SetWaitDependency(Object).)
Public methodSuspend (Inherited from AsyncLoggingContext.)
Public methodToString()
Returns a string that represents the current object.
(Inherited from LoggingContext.)
Protected methodToString(StringBuilder) (Inherited from SuspendableLoggingContext.)
Extension Methods
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also