Open sandboxFocus

Interface ILogActivity

Exposes the public API of the generic value type LogActivity<TActivityDescription>.

Namespace: Flashtrace.Activities
Assembly: Flashtrace.dll
Syntax
public interface ILogActivity : IDisposable

Properties

Name Description
Context

Gets the ILoggingContext corresponding to the current activity.

Methods

Name Description
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)

Closes the activity with an Exception.

SetOutcome<TMessage>(FlashtraceLevel, in TMessage, Exception?, in CloseActivityOptions)

Closes the activity and sets its outcome.

SetResult<TResult>(TResult, in CloseActivityOptions)

Closes the activity with success and includes a result in the outcome message.

SetSuccess(in CloseActivityOptions)

Closes the activity with success and sets no other outcome message than Succeeded.

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.