Show / Hide Table of Contents

    Interface IDistributedLockFactory

    Builds an IDistributedLock instance according to the provided DistributedLockSettings.

    Namespace: Silverback.Lock
    Assembly: Silverback.Core.dll
    Syntax
    public interface IDistributedLockFactory

    Methods

    GetDistributedLock(DistributedLockSettings?, IServiceProvider)

    Returns an IDistributedLock according to the specified settings.

    Declaration
    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.

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