ThreadLoggingContext Methods |
The ThreadLoggingContext type exposes the following members.
Name | Description | |
---|---|---|
CreateCorrelationCookie |
Creates a cookie that can be used to correlate, using the SetCorrelation(CorrelationCookie) method, another context
to the current context.
(Inherited from LoggingContext.) | |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from LoggingContext.) | |
Dispose(Boolean) |
Disposes the current object.
(Overrides LoggingContext.Dispose(Boolean).) | |
ForEachProperty(LoggingPropertyVisitor<Object>, Boolean) |
Invokes a delegate for each property defined in the current logging context and optionally in its ancestor contexts.
(Inherited from LoggingContext.) | |
ForEachProperty<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 LoggingContext.) | |
GetCustomRecordBuilder(CustomLogRecordInfo) |
Gets a LogRecordBuilder for the current context to build a custom record.
(Inherited from LoggingContext.) | |
GetCustomRecordBuilder(LoggingContext, CustomLogRecordInfo) |
Gets a LogRecordBuilder and initializes it to emit a custom record.
| |
GetRecordBuilder(LogRecordInfo, LogMemberInfo) |
Gets a LogRecordBuilder for the current context to build a standard record for a given method.
(Inherited from LoggingContext.) | |
GetRecordBuilder(LoggingContext, LogRecordInfo, LogMemberInfo) |
Gets a LogRecordBuilder and initializes it for a given context, member, and record.
| |
MakeSharable |
Allows the current context to be shared beyond its normal lifecycle by preventing it from being returned to the pool.
(Inherited from LoggingContext.) | |
SetCorrelation |
Associates the current context with another context.
(Inherited from LoggingContext.) | |
SetWaitDependency |
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.
(Inherited from LoggingContext.) | |
ToString() | Returns a string that represents the current object. (Inherited from LoggingContext.) | |
ToString(StringBuilder) |
Formats a description of the current LoggingContext into a given StringBuilder.
(Inherited from LoggingContext.) |