MetalamaAPI documentationFlashtrace APIFlashtrace.​ActivitiesILog­ActivitySet­Outcome
Open sandboxFocus

ILogActivity.SetOutcome Method

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

Closes the activity and sets its outcome.

Declaration
void SetOutcome<TMessage>(FlashtraceLevel level, in TMessage message, Exception exception = null, in CloseActivityOptions options = null)
where TMessage : IMessage
Parameters
Type Name Description
FlashtraceLevel level

Level of the outcome message.

TMessage message

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

System.Exception exception

An optional System.Exception.

CloseActivityOptions options

Options.

Type Parameters
Name Description
TMessage

Type of the message parameter.

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

Declaration
void SetOutcome<TMessage>(FlashtraceLevel level, in TMessage message, Exception exception, in CloseActivityOptions options, in CallerInfo callerInfo)
where TMessage : IMessage
Parameters
Type Name Description
FlashtraceLevel level
TMessage message
System.Exception exception
CloseActivityOptions options
CallerInfo callerInfo
Type Parameters
Name Description
TMessage