MetalamaAPI documentationFlashtrace APIFlashtrace.​ActivitiesILog­Activity
Open sandboxFocus

ILogActivity Interface

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

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

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.

Resume(in CallerInfo)
SetException(Exception, in CloseActivityOptions)

Closes the activity with an System.Exception.

SetException(Exception, in CloseActivityOptions, in CallerInfo)
SetOutcome<TMessage>(FlashtraceLevel, in TMessage, Exception, in CloseActivityOptions)

Closes the activity and sets its outcome.

SetOutcome<TMessage>(FlashtraceLevel, in TMessage, Exception, in CloseActivityOptions, in CallerInfo)
SetResult<TResult>(TResult, in CloseActivityOptions)

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

SetResult<TResult>(TResult, in CloseActivityOptions, in CallerInfo)
SetSuccess(in CloseActivityOptions)

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

SetSuccess(in CloseActivityOptions, in CallerInfo)
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.

Suspend(in CallerInfo)