Class DistributedLockFactory
- Namespace
- Silverback.Lock
- Assembly
- Silverback.Core.dll
Builds an IDistributedLock instance according to the provided DistributedLockSettings.
public class DistributedLockFactory : ExtensibleFactory<IDistributedLock, DistributedLockSettings>, IDistributedLockFactory
- Inheritance
-
DistributedLockFactory
- Implements
- Inherited Members
Constructors
DistributedLockFactory()
public DistributedLockFactory()
Methods
GetDistributedLock(DistributedLockSettings?, IServiceProvider)
Returns an IDistributedLock according to the specified settings.
public IDistributedLock GetDistributedLock(DistributedLockSettings? settings, IServiceProvider serviceProvider)
Parameters
settingsDistributedLockSettingsThe settings that will be used to create the IDistributedLock.
serviceProviderIServiceProviderThe IServiceProvider that can be used to resolve additional services.