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

AsyncCustomActivityLoggingContext.Open Method

Opens the current context.

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.9.7.0 (6.9.7.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 new context.
See Also