Class PublisherStorageExtensions
- Namespace
- Silverback.Storage
- Assembly
- Silverback.Storage.Relational.dll
Adds the storage-specific methods to the Silverback.Messaging.Publishing.Publisher.
public static class PublisherStorageExtensions
- Inheritance
-
PublisherStorageExtensions
- Inherited Members
Methods
EnlistDbTransaction(IPublisher, DbTransaction, bool)
Specifies the DbTransaction to be used for storage operations.
public static IStorageTransaction EnlistDbTransaction(this IPublisher publisher, DbTransaction dbTransaction, bool ownTransaction = true)
Parameters
publisherIPublisherThe IPublisher.
dbTransactionDbTransactionThe transaction to be used.
ownTransactionboolA value indicating whether the transaction should be disposed when the IStorageTransaction is disposed.
Returns
EnlistTransaction(IPublisher, IStorageTransaction)
Specifies the transaction to be used for storage operations.
public static void EnlistTransaction(this IPublisher publisher, IStorageTransaction transaction)
Parameters
publisherIPublisherThe IPublisher.
transactionIStorageTransactionThe transaction to be used.