PostSharp 6.9 / / Post­Sharp Documentation / 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.9.1.0 (6.9.1.0)
Syntax
C#
public struct OpenActivityOptions

The OpenActivityOptions type exposes the following members.

Constructors
  NameDescription
Public methodOpenActivityOptions(Object, LogActivityKind)
Initializes a new OpenActivityOptions and specifies properties using an arbitrary object (possibly of an anonymous class).
Public methodOpenActivityOptions(LogEventData, LogActivityKind)
Initializes a new OpenActivityOptions and specifies properties using a LogEventData.
Properties
  NameDescription
Public propertyData
Specifies the properties of the OpenActivityOptions, typically specified as an instance of a well-known or anonymous CLR type.
Public propertyIncomingRequestOptions
Gets or sets the logging options set by the remote caller of the request represented by the current OpenActivityOptions.
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 Obsolete.
Gets the activity properties.
Public propertySyntheticParentId
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.
Public propertySyntheticRootId
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.
Public propertyTransactionRequirement
Gets or sets the TransactionRequirement for the current activity. These requirements can be set by the caller of OpenActivity<T>(T, OpenActivityOptions) or by ApplyTransactionRequirements(OpenActivityOptions).
See Also