ILogActivity Interface |
Exposes the public API of the generic value type LogActivity<TActivityDescription>.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public interface ILogActivity : IDisposable
The ILogActivity type exposes the following members.
Name | Description | |
---|---|---|
Context |
Gets the ILoggingContext corresponding to the current activity.
|
Name | Description | |
---|---|---|
Resume | ||
SetException |
Closes the activity with an Exception.
| |
SetOutcome<TMessage> |
Closes the activity and sets its outcome.
| |
SetResult<TResult> |
Closes the activity with success and sets includes a result in the outcome message.
| |
SetSuccess |
Closes the activity with success and sets no other outcome message than Succeeded.
| |
Suspend |