Class ImmediateLockHandler
An ILockHandler that fails immediately when a lock cannot be taken.
Inheritance
System.Object
ImmediateLockHandler
Implements
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.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: DesignData.SDS2.Database
Assembly: DesignData.SDS2.Database.dll
Syntax
public class ImmediateLockHandler : ILockHandler
Constructors
ImmediateLockHandler()
Declaration
public ImmediateLockHandler()
Methods
EventLoop()
Declaration
public bool EventLoop()
Returns
Type | Description |
---|---|
System.Boolean |
LockFailed(TableIndexHandle, String)
Once this has been called, we will abort on the next call to EventLoop. This way, as soon as we fail to get any lock we abort.
Declaration
public void LockFailed(TableIndexHandle databaseItem, string userMessage)
Parameters
Type | Name | Description |
---|---|---|
TableIndexHandle | databaseItem | |
System.String | userMessage |
LockSucceeded(TableIndexHandle)
Nothing special is done for a successful lock.
Declaration
public void LockSucceeded(TableIndexHandle databaseItem)
Parameters
Type | Name | Description |
---|---|---|
TableIndexHandle | databaseItem |