PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Transactions.​Model Namespace / Open­Transaction­Expression­Model(T) Structure

OpenTransactionExpressionModel<T> Structure

The type of the t parameters in the if and sample attributes of the transaction policy files.

Namespace:  PostSharp.Patterns.Diagnostics.Transactions.Model
Assembly:  PostSharp.Patterns.Diagnostics.Configuration (in PostSharp.Patterns.Diagnostics.Configuration.dll) Version: 2023.0.3.0 (2023.0.3.0)
public readonly struct OpenTransactionExpressionModel<T> : IFormattable

Type Parameters

Type of the model exposed by the request. See Request.

The OpenTransactionExpressionModel<T> type exposes the following members.

Public propertyIsParentSampled
Determines whether the parent request was logged as a result of sampling, i.e. it was logged by a policy that had a sampling clause. It corresponds to the sampled flag of the W3C Trace Context specification (
Public propertyKind
Gets the kind of activity.
Public propertyLevel
Gets the LogLevel with which the transaction was opened.
Public propertyRequest
Gets the model of the request that causes the transaction to be opened. The type depends on the kind of transaction. For the ASP.NET Core, this property is of type AspNetCoreRequestExpressionModel and for the legacy ASP.NET, it is AspNetFrameworkRequestExpressionModel.
See Also