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 = default) 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. |
Exception | exception | An optional Exception. |
CloseActivityOptions | options | Options. |
Type Parameters
Name | Description |
---|---|
TMessage | Type of the |