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

CloseTransactionExpressionModel<T> Class

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.

Inheritance
CloseTransactionExpressionModel<T>
Implements
IFormattable
Namespace: PostSharp.Patterns.Diagnostics.Transactions.Model
Assembly: PostSharp.Patterns.Diagnostics.Configuration.dll
Syntax
public sealed class CloseTransactionExpressionModel<T> : ValueType, 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.

Explicit Interface Implementations

Name Description
IFormattable.Format(UnsafeStringBuilder, FormattingRole)