MetalamaAPI documentationFlashtrace APIFlashtraceFlashtrace­Level­SourceOpen­Async­Activity
Open sandboxFocus

FlashtraceLevelSource.OpenAsyncActivity Method

OpenAsyncActivity<T>(in T, in OpenActivityOptions)

Opens an activity that contains an await.

Declaration
public LogActivity<T> OpenAsyncActivity<T>(in T description, in OpenActivityOptions options = null)
where T : IMessage
Parameters
Type Name Description
T description

The activity description, typically created using the SemanticMessageBuilder or FormattedMessageBuilder class.

OpenActivityOptions options

Options.

Returns
Type Description
LogActivity<T>

A LogActivity<TActivityDescription> representing the new activity.

Type Parameters
Name Description
T
Remarks

OpenAsyncActivity<T>(in T, in OpenActivityOptions, in CallerInfo)

Declaration
public LogActivity<T> OpenAsyncActivity<T>(in T description, in OpenActivityOptions options, in CallerInfo callerInfo)
where T : IMessage
Parameters
Type Name Description
T description
OpenActivityOptions options
CallerInfo callerInfo
Returns
Type Description
LogActivity<T>
Type Parameters
Name Description
T