Logger.OpenActivity<T1> Method (String, T1) |
Opens a custom activity with a description containing 1 parameter.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.10.14.0 (6.10.14.0)
C#
public LogActivity OpenActivity<T1>( string formattingString, T1 arg1 )
Parameters
- formattingString
- Type: System.String
The description of the activity, including parameters (e.g. Writing {LineCount} line(s) in file {Path}). - arg1
- Type: T1
Value of the first parameter.
Type Parameters
- T1
- Type of the first parameter.
Return Value
Type: LogActivityA Logger representing the new activity.
The activity must be closed using SetSuccess(String), SetFailure(String) or SetException(Exception).