Show / Hide Table of Contents

    Class EntityFrameworkLockSettingsBuilder

    Builds the EntityFrameworkLockSettings.

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

    The DistributedLockSettings.

    Implements

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