Class EntityFrameworkKafkaOffsetStoreSettingsBuilder
Builds the EntityFrameworkKafkaOffsetStoreSettings.
Inherited Members
Namespace: Silverback.Messaging.Configuration
Assembly: Silverback.Storage.EntityFramework.dll
Syntax
public class EntityFrameworkKafkaOffsetStoreSettingsBuilder : IKafkaOffsetStoreSettingsImplementationBuilder
Constructors
EntityFrameworkKafkaOffsetStoreSettingsBuilder(Type, Func<IServiceProvider, ISilverbackContext?, DbContext>)
Initializes a new instance of the EntityFrameworkKafkaOffsetStoreSettingsBuilder class.
Declaration
public EntityFrameworkKafkaOffsetStoreSettingsBuilder(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. |
Methods
Build()
Builds the settings instance.
Declaration
public KafkaOffsetStoreSettings Build()
Returns
| Type | Description |
|---|---|
| KafkaOffsetStoreSettings |