Show / Hide Table of Contents

    Class ImmediateLockHandler

    An ILockHandler that fails immediately when a lock cannot be taken.

    Inheritance
    object
    ImmediateLockHandler
    Implements
    ILockHandler
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: DesignData.SDS2.Database
    Assembly: DesignData.SDS2.Database.dll
    Syntax
    public class ImmediateLockHandler : ILockHandler

    Constructors

    ImmediateLockHandler()

    An ILockHandler that fails immediately when a lock cannot be taken.

    Declaration
    public ImmediateLockHandler()

    Methods

    EventLoop()

    An ILockHandler that fails immediately when a lock cannot be taken.

    Declaration
    public bool EventLoop()
    Returns
    Type Description
    bool

    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
    string userMessage

    LockSucceeded(TableIndexHandle)

    Nothing special is done for a successful lock.

    Declaration
    public void LockSucceeded(TableIndexHandle databaseItem)
    Parameters
    Type Name Description
    TableIndexHandle databaseItem

    Implements

    ILockHandler
    Back to top