PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Open­Activity­Options Structure

OpenActivityOptions Structure

Argument of the OpenActivity<T>(T, OpenActivityOptions) method.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
public struct OpenActivityOptions

The OpenActivityOptions type exposes the following members.

Properties
  NameDescription
Public propertyIsSyntheticRootId
When the property value is true, the resulting activity will be assigned a global id, irrespective of the id generation strategy. This means that the resulting SyntheticId will be rooted by the current activity. When this property is false, the SyntheticId will may start with the id of the parent context.
Public propertyKind
Gets or sets the kind of LogActivity.
Public propertyProperties
Gets or sets the activity properties.
Public propertySyntheticParentId
When this property returns a non-null value, the SyntheticId property shall use the value of the SyntheticParentId property as the parent identifier, instead of recursively building the synthetic identifier based on the parent context.
Public propertySyntheticRootId
When this property returns a non-null value, the SyntheticId property shall return the same value as the SyntheticRootId property, instead of starting with the id of the parent context.
See Also