Class EntityFrameworkOutboxSettings
- Namespace
- Silverback.Messaging.Producing.TransactionalOutbox
- Assembly
- Silverback.Storage.EntityFramework.dll
The EntityFrameworkOutboxWriter and EntityFrameworkOutboxReader settings.
public record EntityFrameworkOutboxSettings : OutboxSettings, IValidatableSettings, IEquatable<OutboxSettings>, IEntityFrameworkSettings, IEquatable<EntityFrameworkOutboxSettings>
- Inheritance
-
EntityFrameworkOutboxSettings
- Implements
- Inherited Members
Constructors
EntityFrameworkOutboxSettings(EntityFrameworkOutboxSettings)
protected EntityFrameworkOutboxSettings(EntityFrameworkOutboxSettings original)
Parameters
originalEntityFrameworkOutboxSettings
EntityFrameworkOutboxSettings(Type, Func<IServiceProvider, ISilverbackContext?, DbContext>)
Initializes a new instance of the EntityFrameworkOutboxSettings class.
public EntityFrameworkOutboxSettings(Type dbContextType, Func<IServiceProvider, ISilverbackContext?, DbContext> dbContextFactory)
Parameters
dbContextTypeTypeThe type of the DbContext to be used to access the database.
dbContextFactoryFunc<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
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Methods
Equals(EntityFrameworkOutboxSettings?)
public virtual bool Equals(EntityFrameworkOutboxSettings? other)
Parameters
Returns
Equals(OutboxSettings?)
public override sealed bool Equals(OutboxSettings? other)
Parameters
otherOutboxSettings
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetCompatibleLockSettings()
Returns an instance of EntityFrameworkLockSettings.
public override DistributedLockSettings GetCompatibleLockSettings()
Returns
GetDbContext(IServiceProvider, ISilverbackContext?)
Gets the factory method that creates the DbContext instance.
public DbContext GetDbContext(IServiceProvider serviceProvider, ISilverbackContext? context = null)
Parameters
serviceProviderIServiceProviderThe IServiceProvider to be used to resolve the DbContext.
contextISilverbackContextThe ISilverbackContext.
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
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
Returns
operator !=(EntityFrameworkOutboxSettings?, EntityFrameworkOutboxSettings?)
public static bool operator !=(EntityFrameworkOutboxSettings? left, EntityFrameworkOutboxSettings? right)