PostSharp//API Reference/Post­Sharp.​Patterns.​Diagnostics/ILog­Activity/Set­Result
Open sandboxFocus

Method SetResult

SetResult<TResult>(TResult, in CloseActivityOptions)

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

Declaration
void SetResult<TResult>(TResult result, in CloseActivityOptions options = null)
Parameters
Type Name Description
TResult result

The result of the activity.

CloseActivityOptions options

Options.

Type Parameters
Name Description
TResult

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

Declaration
void SetResult<TResult>(TResult result, in CloseActivityOptions options, ref CallerInfo callerInfo)
Parameters
Type Name Description
TResult result
CloseActivityOptions options
CallerInfo callerInfo
Type Parameters
Name Description
TResult