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