PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Log­Activity Class / Log­Activity Methods / Log­Activity.​Set­Success Method / Log­Activity.​Set­Success(T1) Method (String, T1)

LogActivity.SetSuccess<T1> Method (String, T1)

Ends an activity (opened with [!:OpenActivity(string)] or [!:OpenAsyncActivity(string)] with success and specifies a success message with 1 parameter.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public void SetSuccess<T1>(
	string text,
	T1 arg1
)

Parameters

text
Type: System.String
The success message with parameters, for instance Written {Count} lines.
arg1
Type: T1
Value of the first parameter.

Type Parameters

T1
Type of the first parameter.
See Also