PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Multiplexer Namespace / Multiplexer­Backend Class / Multiplexer­Backend Methods / Multiplexer­Backend.​Create­Transaction Method

MultiplexerBackend.CreateTransaction Method

Creates a LoggingTransaction instance.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Multiplexer
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public override 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