PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Open­Activity­Options Structure / Open­Activity­Options Constructor / Open­Activity­Options Constructor (Object, Log­Activity­Kind)

OpenActivityOptions Constructor (Object, LogActivityKind)

Initializes a new OpenActivityOptions and specifies properties using an arbitrary object (possibly of an anonymous class).

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
public OpenActivityOptions(
	Object data = null,
	LogActivityKind kind = LogActivityKind.Default


data (Optional)
Type: System.Object
Optional. Specifies the properties of the OpenActivityOptions, typically specified as an instance of a well-known or anonymous CLR type. The resulting LogEventData will have the default LogEventMetadata, which means that all CLR properties will be exposed as logging properties unless they are annotated with LoggingPropertyOptionsAttribute.
kind (Optional)
Type: PostSharp.Patterns.Diagnostics.LogActivityKind
Optional. The kind of activity.
See Also