Open sandboxFocus

Struct OpenActivityOptions

Argument of the OpenActivity<T>(in T, in OpenActivityOptions) method and related overloads.

Namespace: Flashtrace.Options
Assembly: Flashtrace.dll
Syntax
public readonly struct OpenActivityOptions

Constructors

Name Description
OpenActivityOptions(in LogEventData, LogActivityKind)

Initializes a new instance of the OpenActivityOptions struct specifying properties using a LogEventData.

OpenActivityOptions(object?, LogActivityKind)

Initializes a new instance of the OpenActivityOptions struct specifying properties using an arbitrary object (possibly of an anonymous class).

Properties

Name Description
Data

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

IncomingRequestOptions

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

IsSyntheticRootId

Gets a value indicating whether 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 the kind of LogActivity<TActivityDescription>.

SyntheticParentId

Gets a specific value to use as the parent identifier part when building the SyntheticId property. When SyntheticParentId is null, SyntheticId is built recursively using the synthetic identifier based on the parent context.

SyntheticRootId

Gets a specific value to use for the SyntheticId property. When SyntheticRootId is null, SyntheticId is built recursively using the synthetic identifier based on the parent context.

TransactionRequirement

Gets 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).