Class EntityFrameworkOutboxSettings
The EntityFrameworkOutboxWriter and EntityFrameworkOutboxReader settings.
Implements
Inherited Members
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
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
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
GetCompatibleLockSettings()
Returns an instance of EntityFrameworkLockSettings.
Declaration
public override DistributedLockSettings GetCompatibleLockSettings()
Returns
| Type | Description |
|---|---|
| DistributedLockSettings |
Overrides
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
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
ToString()
The EntityFrameworkOutboxWriter and EntityFrameworkOutboxReader settings.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
Overrides
Validate()
Throws a SilverbackConfigurationException if the configuration is not valid.
Declaration
public override void Validate()
Overrides
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 |