Show / Hide Table of Contents

    Class PublisherStorageExtensions

    Adds the storage-specific methods to the Silverback.Messaging.Publishing.Publisher.

    Inheritance
    object
    PublisherStorageExtensions
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Silverback.Storage
    Assembly: Silverback.Storage.Relational.dll
    Syntax
    public static class PublisherStorageExtensions

    Methods

    EnlistDbTransaction(IPublisher, DbTransaction, bool)

    Specifies the DbTransaction to be used for storage operations.

    Declaration
    public static IStorageTransaction EnlistDbTransaction(this IPublisher publisher, DbTransaction dbTransaction, bool ownTransaction = true)
    Parameters
    Type Name Description
    IPublisher publisher

    The IPublisher.

    DbTransaction dbTransaction

    The transaction to be used.

    bool ownTransaction

    A value indicating whether the transaction should be disposed when the IStorageTransaction is disposed.

    Returns
    Type Description
    IStorageTransaction

    The IStorageTransaction.

    EnlistTransaction(IPublisher, IStorageTransaction)

    Specifies the transaction to be used for storage operations.

    Declaration
    public static void EnlistTransaction(this IPublisher publisher, IStorageTransaction transaction)
    Parameters
    Type Name Description
    IPublisher publisher

    The IPublisher.

    IStorageTransaction transaction

    The transaction to be used.

    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini