Class EntityFrameworkKafkaOffsetStoreSettings
The EntityFrameworkKafkaOffsetStore settings.
Implements
Inherited Members
Namespace: Silverback.Messaging.Consuming.KafkaOffsetStore
Assembly: Silverback.Storage.EntityFramework.dll
Syntax
public record EntityFrameworkKafkaOffsetStoreSettings : KafkaOffsetStoreSettings, IValidatableSettings, IEquatable<KafkaOffsetStoreSettings>, IEntityFrameworkSettings, IEquatable<EntityFrameworkKafkaOffsetStoreSettings>
Constructors
EntityFrameworkKafkaOffsetStoreSettings(EntityFrameworkKafkaOffsetStoreSettings)
The EntityFrameworkKafkaOffsetStore settings.
Declaration
protected EntityFrameworkKafkaOffsetStoreSettings(EntityFrameworkKafkaOffsetStoreSettings original)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityFrameworkKafkaOffsetStoreSettings | original |
EntityFrameworkKafkaOffsetStoreSettings(Type, Func<IServiceProvider, ISilverbackContext?, DbContext>)
Initializes a new instance of the EntityFrameworkKafkaOffsetStoreSettings class.
Declaration
public EntityFrameworkKafkaOffsetStoreSettings(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 EntityFrameworkKafkaOffsetStore settings.
Declaration
protected override Type EqualityContract { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Overrides
Methods
Equals(EntityFrameworkKafkaOffsetStoreSettings?)
The EntityFrameworkKafkaOffsetStore settings.
Declaration
public virtual bool Equals(EntityFrameworkKafkaOffsetStoreSettings? other)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityFrameworkKafkaOffsetStoreSettings | other |
Returns
| Type | Description |
|---|---|
| bool |
Equals(KafkaOffsetStoreSettings?)
The EntityFrameworkKafkaOffsetStore settings.
Declaration
public override sealed bool Equals(KafkaOffsetStoreSettings? other)
Parameters
| Type | Name | Description |
|---|---|---|
| KafkaOffsetStoreSettings | other |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
Equals(object?)
The EntityFrameworkKafkaOffsetStore settings.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
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 EntityFrameworkKafkaOffsetStore settings.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Overrides
PrintMembers(StringBuilder)
The EntityFrameworkKafkaOffsetStore settings.
Declaration
protected override bool PrintMembers(StringBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
| StringBuilder | builder |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
ToString()
The EntityFrameworkKafkaOffsetStore 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 ==(EntityFrameworkKafkaOffsetStoreSettings?, EntityFrameworkKafkaOffsetStoreSettings?)
The EntityFrameworkKafkaOffsetStore settings.
Declaration
public static bool operator ==(EntityFrameworkKafkaOffsetStoreSettings? left, EntityFrameworkKafkaOffsetStoreSettings? right)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityFrameworkKafkaOffsetStoreSettings | left | |
| EntityFrameworkKafkaOffsetStoreSettings | right |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(EntityFrameworkKafkaOffsetStoreSettings?, EntityFrameworkKafkaOffsetStoreSettings?)
The EntityFrameworkKafkaOffsetStore settings.
Declaration
public static bool operator !=(EntityFrameworkKafkaOffsetStoreSettings? left, EntityFrameworkKafkaOffsetStoreSettings? right)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityFrameworkKafkaOffsetStoreSettings | left | |
| EntityFrameworkKafkaOffsetStoreSettings | right |
Returns
| Type | Description |
|---|---|
| bool |