Open sandboxFocus

Struct OpenActivityOptions

Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Common.dll
Syntax
public struct OpenActivityOptions

Constructors

Name Description
OpenActivityOptions(in LogEventData, LogActivityKind)

Initializes a new OpenActivityOptions and specifies properties using a LogEventData.

OpenActivityOptions(object, LogActivityKind)

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

Properties

Name Description
Data

Specifies the properties of the OpenActivityOptions, typically specified as an instance of a well-known or anonymous CLR type.

IncomingRequestOptions

Gets or sets the logging options set by the remote caller of the request represented by the current OpenActivityOptions.

IsSyntheticRootId

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.

Kind

Gets or sets the kind of LogActivity.

Properties

Gets the activity properties.

SyntheticParentId

When this property is set to a non-null value, the SyntheticId property shall use this property as the parent identifier, instead of recursively building the synthetic identifier based on the parent context.

SyntheticRootId

When this property is set to a non-null value, the SyntheticId property shall return the the value of this property, instead of starting with the id of the parent context.

TransactionRequirement

Gets or sets the TransactionRequirement for the current activity. These requirements can be set by the caller of OpenActivity<T>(in T, in OpenActivityOptions) or by ApplyTransactionRequirements(ref OpenActivityOptions).