PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Backend Class / Logging­Backend Methods / Logging­Backend.​Create­Transaction Method

LoggingBackend.CreateTransaction Method

Creates a LoggingTransaction instance.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.9.1.0 (6.9.1.0)
Syntax
C#
public virtual LoggingTransaction CreateTransaction(
	LoggingTypeSource source,
	 in TransactionProperties properties,
	ITransactionPolicy policy
)

Parameters

source
Type: PostSharp.Patterns.Diagnostics.LoggingTypeSource
The LoggingTypeSource that was used to open the transaction.
properties
Type: PostSharp.Patterns.Diagnostics.Transactions.TransactionPropertiesInAttribute
Transaction properties.
policy
Type: PostSharp.Patterns.Diagnostics.Transactions.ITransactionPolicy
Policy assigned to the transaction.

Return Value

Type: LoggingTransaction
A LoggingTransaction, or null if the transaction could not be created.
See Also