Class EntityFrameworkLockSettingsBuilder
- Namespace
- Silverback.Lock
- Assembly
- Silverback.Storage.EntityFramework.dll
Builds the EntityFrameworkLockSettings.
public class EntityFrameworkLockSettingsBuilder : IDistributedLockSettingsImplementationBuilder
- Inheritance
-
EntityFrameworkLockSettingsBuilder
- Implements
- Inherited Members
Constructors
EntityFrameworkLockSettingsBuilder(string, Type, Func<IServiceProvider, ISilverbackContext?, DbContext>)
Initializes a new instance of the EntityFrameworkLockSettingsBuilder class.
public EntityFrameworkLockSettingsBuilder(string lockName, Type dbContextType, Func<IServiceProvider, ISilverbackContext?, DbContext> dbContextFactory)
Parameters
lockNamestringThe name of the lock.
dbContextTypeTypeThe type of the DbContext to be used to access the database.
dbContextFactoryFunc<IServiceProvider, ISilverbackContext, DbContext>The factory method that creates the DbContext instance.
Methods
Build()
Builds the settings instance.
public DistributedLockSettings Build()