Table of Contents

Class EntityFrameworkOutboxSettings

Namespace
Silverback.Messaging.Producing.TransactionalOutbox
Assembly
Silverback.Storage.EntityFramework.dll
public record EntityFrameworkOutboxSettings : OutboxSettings, IValidatableSettings, IEquatable<OutboxSettings>, IEntityFrameworkSettings, IEquatable<EntityFrameworkOutboxSettings>
Inheritance
EntityFrameworkOutboxSettings
Implements
Inherited Members

Constructors

EntityFrameworkOutboxSettings(EntityFrameworkOutboxSettings)

protected EntityFrameworkOutboxSettings(EntityFrameworkOutboxSettings original)

Parameters

original EntityFrameworkOutboxSettings

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

Initializes a new instance of the EntityFrameworkOutboxSettings class.

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

Parameters

dbContextType Type

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

dbContextFactory Func<IServiceProvider, ISilverbackContext, DbContext>

The factory method that creates the DbContext instance.

Properties

DbContextType

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

public Type DbContextType { get; }

Property Value

Type

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Equals(EntityFrameworkOutboxSettings?)

public virtual bool Equals(EntityFrameworkOutboxSettings? other)

Parameters

other EntityFrameworkOutboxSettings

Returns

bool

Equals(OutboxSettings?)

public override sealed bool Equals(OutboxSettings? other)

Parameters

other OutboxSettings

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetCompatibleLockSettings()

Returns an instance of EntityFrameworkLockSettings.

public override DistributedLockSettings GetCompatibleLockSettings()

Returns

DistributedLockSettings

The EntityFrameworkLockSettings.

GetDbContext(IServiceProvider, ISilverbackContext?)

Gets the factory method that creates the DbContext instance.

public DbContext GetDbContext(IServiceProvider serviceProvider, ISilverbackContext? context = null)

Parameters

serviceProvider IServiceProvider

The IServiceProvider to be used to resolve the DbContext.

context ISilverbackContext

The ISilverbackContext.

Returns

DbContext

The DbContext instance.

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Validate()

Throws a SilverbackConfigurationException if the configuration is not valid.

public override void Validate()

Operators

operator ==(EntityFrameworkOutboxSettings?, EntityFrameworkOutboxSettings?)

public static bool operator ==(EntityFrameworkOutboxSettings? left, EntityFrameworkOutboxSettings? right)

Parameters

left EntityFrameworkOutboxSettings
right EntityFrameworkOutboxSettings

Returns

bool

operator !=(EntityFrameworkOutboxSettings?, EntityFrameworkOutboxSettings?)

public static bool operator !=(EntityFrameworkOutboxSettings? left, EntityFrameworkOutboxSettings? right)

Parameters

left EntityFrameworkOutboxSettings
right EntityFrameworkOutboxSettings

Returns

bool