Class EntityFrameworkLockSettingsBuilder
Builds the EntityFrameworkLockSettings.
Inherited Members
Namespace: Silverback.Lock
Assembly: Silverback.Storage.EntityFramework.dll
Syntax
public class EntityFrameworkLockSettingsBuilder : IDistributedLockSettingsImplementationBuilder
Constructors
EntityFrameworkLockSettingsBuilder(string, Type, Func<IServiceProvider, ISilverbackContext?, DbContext>)
Initializes a new instance of the EntityFrameworkLockSettingsBuilder class.
Declaration
public EntityFrameworkLockSettingsBuilder(string lockName, Type dbContextType, Func<IServiceProvider, ISilverbackContext?, DbContext> dbContextFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| string | lockName | The name of the lock. |
| 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 DistributedLockSettings Build()
Returns
| Type | Description |
|---|---|
| DistributedLockSettings |