Open sandboxFocus

Struct CloseTransactionExpressionModel<T>

Type of the t parameter for the publishIf expression in the policy configuration file. It represents information from the transaction that a policy can use to take an action when the transaction closes. The policy might decide to publish the log file based on this informatino.

Implements
Namespace: PostSharp.Patterns.Diagnostics.Transactions.Model
Assembly: PostSharp.Patterns.Diagnostics.Configuration.dll
Syntax
public readonly struct CloseTransactionExpressionModel<T> : IFormattable
Type Parameters
Name Description
T

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

Properties

Name Description
CriticalCount

Returns CriticalCount.

ErrorCount

Returns ErrorCount.

ExecutionTime

Returns ExecutionTime.

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 LoggingActionFilter, this property is of type AspNetCoreRequestExpressionModel.

WarningCount

Returns WarningCount.