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

OpenActivityOptions Constructor (LogEventData, LogActivityKind)

Initializes a new OpenActivityOptions and specifies properties using a LogEventData.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public OpenActivityOptions(
	 in LogEventData data,
	LogActivityKind kind = LogActivityKind.Default
)

Parameters

data
Type: PostSharp.Patterns.Diagnostics.Custom.LogEventData
Optional. Specifies the properties of the WriteMessageOptions. See LogEventData.
kind (Optional)
Type: PostSharp.Patterns.Diagnostics.LogActivityKind
Optional. The kind of activity.
See Also