SyncCustomActivityLoggingContext Class |
A LoggingContext that represents a synchronous custom activity, opened by the OpenActivity(String)
method.
System.Object
PostSharp.Patterns.Diagnostics.Contexts.LoggingContext
PostSharp.Patterns.Diagnostics.Contexts.SyncLoggingContext
PostSharp.Patterns.Diagnostics.Contexts.SyncCustomActivityLoggingContext
PostSharp.Patterns.Diagnostics.Backends.Serilog.SerilogSyncCustomActivityContext
PostSharp.Patterns.Diagnostics.Contexts.LoggingContext
PostSharp.Patterns.Diagnostics.Contexts.SyncLoggingContext
PostSharp.Patterns.Diagnostics.Contexts.SyncCustomActivityLoggingContext
PostSharp.Patterns.Diagnostics.Backends.Serilog.SerilogSyncCustomActivityContext
Namespace: PostSharp.Patterns.Diagnostics.Contexts
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 5.0.55.0 (5.0.55.0)
C#
public class SyncCustomActivityLoggingContext : SyncLoggingContext, ICustomActivityLoggingContext, ILoggingContext, IDisposable
The SyncCustomActivityLoggingContext type exposes the following members.
Name | Description | |
---|---|---|
SyncCustomActivityLoggingContext |
Initializes a new SyncCustomActivityLoggingContext.
|
Name | Description | |
---|---|---|
ActivationContext |
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.) | |
Backend |
Gets the parent LoggingBackend of the current context.
(Inherited from LoggingContext.) | |
CustomActivityKind | ||
Description |
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.) | |
Id |
Gets or set the identifier of the current context. The value can be 0 when no identifier has been generated.
(Inherited from LoggingContext.) | |
IndentLevel |
Gets or sets the indentation level for the current context.
(Inherited from LoggingContext.) | |
IsAsync |
Determines whether the current LoggingContext represents an async method or an asynchronous custom activity.
(Inherited from LoggingContext.) | |
IsDisposed |
Determines whether the current context has been disposed.
(Inherited from LoggingContext.) | |
IsSharable |
Determines whether the current LoggingContext can be accessed outside of its
nominal lifetype (for instance after the method has completed or a custom activity has beeen 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.) | |
Kind |
Gets the kind of the current context.
(Inherited from LoggingContext.) | |
MemberName |
Gets the name of the method or property related to the current context.
(Inherited from LoggingContext.) | |
ParentContext |
Gets the LoggingContext that created (initiated) the current context. This is the logical parent.
(Inherited from LoggingContext.) | |
Source |
Gets the LoggingTypeSource corresponding, typically, to the declaring type of the member
associated to the current context.
(Inherited from LoggingContext.) | |
ThreadContext |
Gets the ThreadLoggingContext for the thread in which the current LoggingContext
is currently executed.
(Inherited from SyncLoggingContext.) |
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.
(Inherited from SyncLoggingContext.) | |
GetCustomRecordBuilder |
Gets a LogRecordBuilder for the current context to build a custom record.
(Inherited from LoggingContext.) | |
GetRecordBuilder |
Gets a LogRecordBuilder for the current context to build a standard record for a given method.
(Inherited from LoggingContext.) | |
MakeSharable |
Allows the current context to be shared beyond its normal lifecycle by preventing it from being returned to the pool.
(Inherited from LoggingContext.) | |
Open |
Opens the current context.
| |
Reset |
Resets the current context to its initial, uninitialized state. This method is called by the Dispose() method.
(Inherited from LoggingContext.) | |
ReturnToPool |
Returns the current instance to the pool to which it belongs. This method is invoked by the Dispose(Boolean) method.
(Overrides SyncLoggingContext.ReturnToPool().) | |
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.
(Overrides LoggingContext.SetWaitDependency(Object).) | |
ToString() | Returns a string that represents the current object. (Inherited from LoggingContext.) | |
ToString(StringBuilder) | (Inherited from LoggingContext.) |
Name | Description | |
---|---|---|
QueryInterface<T> |
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.) |