Open sandboxFocus

Struct LogActivity<TActivityDescription>

Represents a logged activity, i.e. something that has a beginning and an end with a specific outcome.

Namespace: Flashtrace.Activities
Assembly: Flashtrace.dll
Syntax
public readonly struct LogActivity<TActivityDescription> : ILogActivity, IDisposable where TActivityDescription : IMessage
Type Parameters
Name Description
TActivityDescription

Properties

Name Description
Context

Gets the ILoggingContext corresponding to the current activity.

Methods

Name Description
Dispose()
Resume()

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 FlashtraceLevelSource class are automatically instrumented.

SetException(Exception, in CloseActivityOptions)
SetOutcome<TMessage>(FlashtraceLevel, in TMessage, Exception?, in CloseActivityOptions)
SetResult<TResult>(TResult, in CloseActivityOptions)
SetSuccess(in CloseActivityOptions)
Suspend()

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 FlashtraceLevelSource class are automatically instrumented.