PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / IContext­Local­Logger Interface / IContext­Local­Logger Methods / IContext­Local­Logger.​Open­Activity Method

IContextLocalLogger.OpenActivity Method

Opens a new context for a custom activity.

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

Parameters

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

Return Value

Type: ILoggingContext
A new context for the custom activity.
See Also