PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logger Class/Logger Methods/Logger.​Open­Activity Method/Logger.​Open­Activity Method (String, Object[])

Logger.OpenActivity Method (String, Object[])

Opens a custom activity with an array of parameters.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.6.14.0 (6.6.14.0)
Syntax
C#
public LogActivity OpenActivity(
	string text,
	params Object[] args
)

Parameters

text
Type: System.String
The description of the activity, including parameters (e.g. Writing {LineCount} line(s) in file {Path}.)
args
Type: System.Object[]
An array of parameters.

Return Value

Type: LogActivity
A Logger representing the new activity.
Remarks
The activity must be closed using SetSuccess(String), SetFailure(String) or SetException(Exception).
See Also