Class EntityFrameworkKafkaOffsetStoreSettings
- Namespace
- Silverback.Messaging.Consuming.KafkaOffsetStore
- Assembly
- Silverback.Storage.EntityFramework.dll
The EntityFrameworkKafkaOffsetStore settings.
public record EntityFrameworkKafkaOffsetStoreSettings : KafkaOffsetStoreSettings, IValidatableSettings, IEquatable<KafkaOffsetStoreSettings>, IEntityFrameworkSettings, IEquatable<EntityFrameworkKafkaOffsetStoreSettings>
- Inheritance
-
EntityFrameworkKafkaOffsetStoreSettings
- Implements
- Inherited Members
Constructors
EntityFrameworkKafkaOffsetStoreSettings(EntityFrameworkKafkaOffsetStoreSettings)
protected EntityFrameworkKafkaOffsetStoreSettings(EntityFrameworkKafkaOffsetStoreSettings original)
Parameters
EntityFrameworkKafkaOffsetStoreSettings(Type, Func<IServiceProvider, ISilverbackContext?, DbContext>)
Initializes a new instance of the EntityFrameworkKafkaOffsetStoreSettings class.
public EntityFrameworkKafkaOffsetStoreSettings(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(EntityFrameworkKafkaOffsetStoreSettings?)
public virtual bool Equals(EntityFrameworkKafkaOffsetStoreSettings? other)
Parameters
Returns
Equals(KafkaOffsetStoreSettings?)
public override sealed bool Equals(KafkaOffsetStoreSettings? other)
Parameters
otherKafkaOffsetStoreSettings
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
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 ==(EntityFrameworkKafkaOffsetStoreSettings?, EntityFrameworkKafkaOffsetStoreSettings?)
public static bool operator ==(EntityFrameworkKafkaOffsetStoreSettings? left, EntityFrameworkKafkaOffsetStoreSettings? right)
Parameters
Returns
operator !=(EntityFrameworkKafkaOffsetStoreSettings?, EntityFrameworkKafkaOffsetStoreSettings?)
public static bool operator !=(EntityFrameworkKafkaOffsetStoreSettings? left, EntityFrameworkKafkaOffsetStoreSettings? right)