PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / ILogger Interface / ILogger Methods / ILogger.​Open­Activity Method

ILogger.OpenActivity Method

Opens an activity.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
ILoggingContext OpenActivity(
	LogActivityOptions options,
	ref CallerInfo callerInfo
)

Parameters

options
Type: PostSharp.Patterns.Diagnostics.LogActivityOptions
Options.
callerInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.CallerInfo
Information about the caller source code.

Return Value

Type: ILoggingContext
An ILoggingContext representing the new activity.
See Also