PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Transactions.​ModelOpen­Transaction­Expression­Model<T>
Open sandboxFocus

OpenTransactionExpressionModel<T> Class

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

Inheritance
OpenTransactionExpressionModel<T>
Implements
IFormattable
Namespace: PostSharp.Patterns.Diagnostics.Transactions.Model
Assembly: PostSharp.Patterns.Diagnostics.Configuration.dll
Syntax
public sealed class OpenTransactionExpressionModel<T> : ValueType, IFormattable
Type Parameters
Name Description
T

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

Properties

Name Description
IsParentSampled

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

Kind

Gets the kind of activity.

Level

Gets the LogLevel with which the transaction was opened.

Request

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.

Explicit Interface Implementations

Name Description
IFormattable.Format(UnsafeStringBuilder, FormattingRole)