Table of Contents

Interface IDistributedLockFactory

Namespace
Silverback.Lock
Assembly
Silverback.Core.dll

Builds an IDistributedLock instance according to the provided DistributedLockSettings.

public interface IDistributedLockFactory

Methods

GetDistributedLock(DistributedLockSettings?, IServiceProvider)

Returns an IDistributedLock according to the specified settings.

IDistributedLock GetDistributedLock(DistributedLockSettings? settings, IServiceProvider serviceProvider)

Parameters

settings DistributedLockSettings

The settings that will be used to create the IDistributedLock.

serviceProvider IServiceProvider

The IServiceProvider that can be used to resolve additional services.

Returns

IDistributedLock

The IDistributedLock.