LogActivity<TActivityDescription> Structure |
Represents a logged custom activity, i.e. something that has a beginning and an end with a specific outcome.
This class is instantiated by the new API of the LogSource class.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.1.23.0 (6.1.23.0)

C#
public readonly struct LogActivity<TActivityDescription> : ILogActivity, IDisposable where TActivityDescription : IMessage
Type Parameters
- TActivityDescription
The LogActivity<TActivityDescription> type exposes the following members.

Name | Description | |
---|---|---|
![]() | Context |
Gets the ILoggingContext corresponding to the current activity.
|

Name | Description | |
---|---|---|
![]() | Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
![]() | Resume | |
![]() | SetException | |
![]() | SetOutcome<TMessage> | |
![]() | SetResult<TResult> | |
![]() | SetSuccess | |
![]() | Suspend |
