Class LocalTestingLockManager
Used for testing, facade for calling locking APIs from client code into server that is hosted in the same process
Inheritance
System.Object
LocalTestingLockManager
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Sky.Locking
Assembly: Azos.Sky.dll
Syntax
public sealed class LocalTestingLockManager : LockManagerBase, IDaemon, IDaemonView, INamed, ILocalizedTimeProvider, ILockManagerImplementation, ILockManager, IApplicationComponent, IDisposable, IConfigurable, IInstrumentable, IExternallyParameterized
Constructors
LocalTestingLockManager(IApplicationComponent)
Declaration
public LocalTestingLockManager(IApplicationComponent director)
Parameters
Type | Name | Description |
---|---|---|
IApplicationComponent | director |
LocalTestingLockManager(IApplication)
Declaration
public LocalTestingLockManager(IApplication app)
Parameters
Type | Name | Description |
---|---|---|
IApplication | app |
Methods
DoEndLockSession(LockSession)
Declaration
protected override bool DoEndLockSession(LockSession session)
Parameters
Type | Name | Description |
---|---|---|
LockSession | session |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
DoEndLockSessionAsync(LockSession)
Declaration
protected override Task<bool> DoEndLockSessionAsync(LockSession session)
Parameters
Type | Name | Description |
---|---|---|
LockSession | session |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |
Overrides
DoExecuteLockTransaction(LockSession, LockTransaction)
Declaration
protected override LockTransactionResult DoExecuteLockTransaction(LockSession session, LockTransaction transaction)
Parameters
Type | Name | Description |
---|---|---|
LockSession | session | |
LockTransaction | transaction |
Returns
Type | Description |
---|---|
LockTransactionResult |
Overrides
DoExecuteLockTransactionAsync(LockSession, LockTransaction)
Declaration
protected override Task<LockTransactionResult> DoExecuteLockTransactionAsync(LockSession session, LockTransaction transaction)
Parameters
Type | Name | Description |
---|---|---|
LockSession | session | |
LockTransaction | transaction |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<LockTransactionResult> |
Overrides
DoStart()
Declaration
protected override void DoStart()
Overrides
DoWaitForCompleteStop()
Declaration
protected override void DoWaitForCompleteStop()
Overrides
Implements
System.IDisposable