PostSharp 6.6 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Log­Activity(TActivity­Description) Structure / Log­Activity(TActivity­Description) Methods

LogActivity<TActivityDescription> Methods

The LogActivity<TActivityDescription> generic type exposes the following members.

Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodResume
Resumes the current async activity after it has been suspended by a call to Suspend(). There is typically no need to invoke this method in user code because all async methods that use the Logger class are automatically instrumented.
Public methodSetException
Public methodSetOutcome<TMessage>
Public methodSetResult<TResult>
Public methodSetSuccess
Public methodSuspend
Suspends the current async activity. The activity must than be resumed by a call of the Resume() method. There is typically no need to invoke this method in user code because all async methods that use the Logger class are automatically instrumented.
See Also