Class DistributedLockFactory
Builds an IDistributedLock instance according to the provided DistributedLockSettings.
Inheritance
DistributedLockFactory
Implements
Inherited Members
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. |