Show / Hide Table of Contents

    Class DistributedLockFactory

    Builds an IDistributedLock instance according to the provided DistributedLockSettings.

    Inheritance
    object
    ExtensibleFactory<IDistributedLock, DistributedLockSettings>
    DistributedLockFactory
    Implements
    IDistributedLockFactory
    Inherited Members
    ExtensibleFactory<IDistributedLock, DistributedLockSettings>.AddFactory<TSettings>(Func<TSettings, IServiceProvider, IDistributedLock>)
    ExtensibleFactory<IDistributedLock, DistributedLockSettings>.HasFactory<TSettings>()
    ExtensibleFactory<IDistributedLock, DistributedLockSettings>.OverrideFactories(Func<DistributedLockSettings, IServiceProvider, IDistributedLock>)
    ExtensibleFactory<IDistributedLock, DistributedLockSettings>.GetService<TSettings>(TSettings, IServiceProvider)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Silverback.Lock
    Assembly: Silverback.Core.dll
    Syntax
    public class DistributedLockFactory : ExtensibleFactory<IDistributedLock, DistributedLockSettings>, IDistributedLockFactory

    Constructors

    DistributedLockFactory()

    Builds an IDistributedLock instance according to the provided DistributedLockSettings.

    Declaration
    public DistributedLockFactory()

    Methods

    GetDistributedLock(DistributedLockSettings?, IServiceProvider)

    Returns an IDistributedLock according to the specified settings.

    Declaration
    public IDistributedLock GetDistributedLock(DistributedLockSettings? settings, IServiceProvider serviceProvider)
    Parameters
    Type Name Description
    DistributedLockSettings settings

    The settings that will be used to create the IDistributedLock.

    IServiceProvider serviceProvider

    The IServiceProvider that can be used to resolve additional services.

    Returns
    Type Description
    IDistributedLock

    The IDistributedLock.

    Implements

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