Show / Hide Table of Contents

Class InMemoryLockManager

An in-memory implementation of a lock manager

Inheritance
Object
LockManagerBase
InMemoryLockManager
Inherited Members
LockManagerBase.LockAdded
LockManagerBase.LockReleased
LockManagerBase.Cost
LockManagerBase.LockCleanupTask
LockManagerBase.LockAsync(ILock, CancellationToken)
LockManagerBase.LockImplicitAsync(IFileSystem, IReadOnlyCollection<IfHeaderList>, ILock, CancellationToken)
LockManagerBase.RefreshLockAsync(IFileSystem, IfHeader, TimeSpan, CancellationToken)
LockManagerBase.ReleaseAsync(String, Uri, CancellationToken)
LockManagerBase.GetLocksAsync(CancellationToken)
LockManagerBase.GetAffectedLocksAsync(String, Boolean, Boolean, CancellationToken)
LockManagerBase.NormalizePath(Uri)
LockManagerBase.OnLockAdded(IActiveLock)
LockManagerBase.OnLockReleased(IActiveLock)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace:FubarDev.WebDavServer.Locking.InMemory
Assembly:FubarDev.WebDavServer.Locking.InMemory.dll
Syntax
public class InMemoryLockManager : LockManagerBase, ILockManager

Constructors

| Improve this Doc View Source

InMemoryLockManager(IOptions<InMemoryLockManagerOptions>, ILockCleanupTask, ISystemClock, ILogger<InMemoryLockManager>)

Initializes a new instance of the InMemoryLockManager class.

Declaration
public InMemoryLockManager(IOptions<InMemoryLockManagerOptions> options, ILockCleanupTask cleanupTask, ISystemClock systemClock, ILogger<InMemoryLockManager> logger)
Parameters
Type Name Description
Microsoft.Extensions.Options.IOptions<InMemoryLockManagerOptions> options

The options of the lock manager

ILockCleanupTask cleanupTask

The clean-up task for expired locks

ISystemClock systemClock

The system clock interface

Microsoft.Extensions.Logging.ILogger<InMemoryLockManager> logger

The logger

Methods

| Improve this Doc View Source

BeginTransactionAsync(CancellationToken)

Begins a new transaction

Declaration
protected override Task<LockManagerBase.ILockManagerTransaction> BeginTransactionAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
CancellationToken cancellationToken

The cancellation token

Returns
Type Description
Task<LockManagerBase.ILockManagerTransaction>

The transaction to be used to update the active locks

Overrides
LockManagerBase.BeginTransactionAsync(CancellationToken)
  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX