Open sandboxFocus

Method SetOutcome

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

Closes the activity and sets its outcome.

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

Level of the outcome message.

TMessage message

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

Exception exception

An optional Exception.

CloseActivityOptions options

Options.

Type Parameters
Name Description
TMessage

Type of the message parameter.