PostSharp 6.9 / / 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: 6.9.7.0 (6.9.7.0)
Syntax
C#
public readonly struct OpenTransactionExpressionModel<T> : IFormattable

Type Parameters

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

The OpenTransactionExpressionModel<T> type exposes the following members.

Properties
  NameDescription
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 (https://www.w3.org/TR/trace-context/#sampled-flag).
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