Show / Hide Table of Contents

    Class EntityFrameworkOutboxSettings

    The EntityFrameworkOutboxWriter and EntityFrameworkOutboxReader settings.

    Inheritance
    object
    OutboxSettings
    EntityFrameworkOutboxSettings
    Implements
    IValidatableSettings
    IEquatable<OutboxSettings>
    IEntityFrameworkSettings
    IEquatable<EntityFrameworkOutboxSettings>
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: Silverback.Messaging.Producing.TransactionalOutbox
    Assembly: Silverback.Storage.EntityFramework.dll
    Syntax
    public record EntityFrameworkOutboxSettings : OutboxSettings, IValidatableSettings, IEquatable<OutboxSettings>, IEntityFrameworkSettings, IEquatable<EntityFrameworkOutboxSettings>

    Constructors

    EntityFrameworkOutboxSettings(EntityFrameworkOutboxSettings)

    The EntityFrameworkOutboxWriter and EntityFrameworkOutboxReader settings.

    Declaration
    protected EntityFrameworkOutboxSettings(EntityFrameworkOutboxSettings original)
    Parameters
    Type Name Description
    EntityFrameworkOutboxSettings original

    EntityFrameworkOutboxSettings(Type, Func<IServiceProvider, ISilverbackContext?, DbContext>)

    Initializes a new instance of the EntityFrameworkOutboxSettings class.

    Declaration
    public EntityFrameworkOutboxSettings(Type dbContextType, Func<IServiceProvider, ISilverbackContext?, DbContext> dbContextFactory)
    Parameters
    Type Name Description
    Type dbContextType

    The type of the DbContext to be used to access the database.

    Func<IServiceProvider, ISilverbackContext, DbContext> dbContextFactory

    The factory method that creates the DbContext instance.

    Properties

    DbContextType

    Gets the type of the DbContext to be used to access the database.

    Declaration
    public Type DbContextType { get; }
    Property Value
    Type Description
    Type

    EqualityContract

    The EntityFrameworkOutboxWriter and EntityFrameworkOutboxReader settings.

    Declaration
    protected override Type EqualityContract { get; }
    Property Value
    Type Description
    Type
    Overrides
    OutboxSettings.EqualityContract

    Methods

    Equals(EntityFrameworkOutboxSettings?)

    The EntityFrameworkOutboxWriter and EntityFrameworkOutboxReader settings.

    Declaration
    public virtual bool Equals(EntityFrameworkOutboxSettings? other)
    Parameters
    Type Name Description
    EntityFrameworkOutboxSettings other
    Returns
    Type Description
    bool

    Equals(OutboxSettings?)

    The EntityFrameworkOutboxWriter and EntityFrameworkOutboxReader settings.

    Declaration
    public override sealed bool Equals(OutboxSettings? other)
    Parameters
    Type Name Description
    OutboxSettings other
    Returns
    Type Description
    bool
    Overrides
    OutboxSettings.Equals(OutboxSettings?)

    Equals(object?)

    The EntityFrameworkOutboxWriter and EntityFrameworkOutboxReader settings.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    OutboxSettings.Equals(object?)

    GetCompatibleLockSettings()

    Returns an instance of EntityFrameworkLockSettings.

    Declaration
    public override DistributedLockSettings GetCompatibleLockSettings()
    Returns
    Type Description
    DistributedLockSettings

    The EntityFrameworkLockSettings.

    Overrides
    OutboxSettings.GetCompatibleLockSettings()

    GetDbContext(IServiceProvider, ISilverbackContext?)

    Gets the factory method that creates the DbContext instance.

    Declaration
    public DbContext GetDbContext(IServiceProvider serviceProvider, ISilverbackContext? context = null)
    Parameters
    Type Name Description
    IServiceProvider serviceProvider

    The IServiceProvider to be used to resolve the DbContext.

    ISilverbackContext context

    The ISilverbackContext.

    Returns
    Type Description
    DbContext

    The DbContext instance.

    GetHashCode()

    The EntityFrameworkOutboxWriter and EntityFrameworkOutboxReader settings.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    OutboxSettings.GetHashCode()

    PrintMembers(StringBuilder)

    The EntityFrameworkOutboxWriter and EntityFrameworkOutboxReader settings.

    Declaration
    protected override bool PrintMembers(StringBuilder builder)
    Parameters
    Type Name Description
    StringBuilder builder
    Returns
    Type Description
    bool
    Overrides
    OutboxSettings.PrintMembers(StringBuilder)

    ToString()

    The EntityFrameworkOutboxWriter and EntityFrameworkOutboxReader settings.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    OutboxSettings.ToString()

    Validate()

    Throws a SilverbackConfigurationException if the configuration is not valid.

    Declaration
    public override void Validate()
    Overrides
    OutboxSettings.Validate()

    Operators

    operator ==(EntityFrameworkOutboxSettings?, EntityFrameworkOutboxSettings?)

    The EntityFrameworkOutboxWriter and EntityFrameworkOutboxReader settings.

    Declaration
    public static bool operator ==(EntityFrameworkOutboxSettings? left, EntityFrameworkOutboxSettings? right)
    Parameters
    Type Name Description
    EntityFrameworkOutboxSettings left
    EntityFrameworkOutboxSettings right
    Returns
    Type Description
    bool

    operator !=(EntityFrameworkOutboxSettings?, EntityFrameworkOutboxSettings?)

    The EntityFrameworkOutboxWriter and EntityFrameworkOutboxReader settings.

    Declaration
    public static bool operator !=(EntityFrameworkOutboxSettings? left, EntityFrameworkOutboxSettings? right)
    Parameters
    Type Name Description
    EntityFrameworkOutboxSettings left
    EntityFrameworkOutboxSettings right
    Returns
    Type Description
    bool

    Implements

    IValidatableSettings
    IEquatable<T>
    IEntityFrameworkSettings
    IEquatable<T>
    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini