Class EntityFrameworkOutboxSettingsBuilder
Builds the EntityFrameworkOutboxSettings.
Implements
Inherited Members
Namespace: Silverback.Messaging.Configuration
Assembly: Silverback.Storage.EntityFramework.dll
Syntax
public class EntityFrameworkOutboxSettingsBuilder : IOutboxSettingsImplementationBuilder
Constructors
EntityFrameworkOutboxSettingsBuilder(Type, Func<IServiceProvider, ISilverbackContext?, DbContext>)
Initializes a new instance of the EntityFrameworkOutboxSettingsBuilder class.
Declaration
public EntityFrameworkOutboxSettingsBuilder(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 OutboxSettings Build()
Returns
| Type | Description |
|---|---|
| OutboxSettings | The OutboxSettings. |