PostSharp 6.6 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace / Sync­Custom­Activity­Logging­Context Class / Sync­Custom­Activity­Logging­Context Methods / Sync­Custom­Activity­Logging­Context.​Open Method

SyncCustomActivityLoggingContext.Open Method

Opens the current context.

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.6.14.0 (6.6.14.0)
Syntax
C#
public virtual void Open(
	LoggingTypeSource typeSource,
	 in OpenActivityOptions options
)

Parameters

typeSource
Type: PostSharp.Patterns.Diagnostics.LoggingTypeSource
The LoggingTypeSource for the declaring type of the context.
options
Type: PostSharp.Patterns.Diagnostics.OpenActivityOptionsInAttribute
Options of the opened custom context.
See Also