Class DistributedLockSettingsBuilderEntityFrameworkExtensions
- Namespace
- Silverback.Configuration
- Assembly
- Silverback.Storage.EntityFramework.dll
Adds the UseDbContext<TDbContext>(DistributedLockSettingsBuilder, string) methods to the DistributedLockSettingsBuilder.
public static class DistributedLockSettingsBuilderEntityFrameworkExtensions
- Inheritance
-
DistributedLockSettingsBuilderEntityFrameworkExtensions
- Inherited Members
Methods
UseDbContext<TDbContext>(DistributedLockSettingsBuilder, string)
Configures the Entity Framework based lock.
public static EntityFrameworkLockSettingsBuilder UseDbContext<TDbContext>(this DistributedLockSettingsBuilder builder, string lockName) where TDbContext : DbContext
Parameters
builderDistributedLockSettingsBuilderlockNamestringThe lock name.
Returns
Type Parameters
TDbContextThe type of the DbContext.