Show / Hide Table of Contents

    Class DistributedLockSettingsBuilderEntityFrameworkExtensions

    Adds the UseDbContext<TDbContext>(DistributedLockSettingsBuilder, string) methods to the DistributedLockSettingsBuilder.

    Inheritance
    object
    DistributedLockSettingsBuilderEntityFrameworkExtensions
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    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

    The DistributedLockSettingsBuilder.

    string lockName

    The lock name.

    Returns
    Type Description
    EntityFrameworkLockSettingsBuilder

    The EntityFrameworkLockSettingsBuilder.

    Type Parameters
    Name Description
    TDbContext

    The type of the DbContext.

    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini