C# Класс Iaik.Utils.Locking.LockProvider

Replacement locking method
See the example of how to use this. It should only be used in combination with the using(...) statement and provides a replacement for the lock(...) statement with the enhancement that e.g. a locking hierachy can be written to console (or somewhere else), for debugging purpose
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AcquireLock ( ) : LockContext

Acquires the lock, use LockContext.Dispose or embedd the contex into a using statement to release the lock

LockProvider ( object lockTarget, string description ) : System

Creates a new LockProvider with the specified lockTarget and description

Описание методов

AcquireLock() публичный Метод

Acquires the lock, use LockContext.Dispose or embedd the contex into a using statement to release the lock
public AcquireLock ( ) : LockContext
Результат LockContext

LockProvider() публичный Метод

Creates a new LockProvider with the specified lockTarget and description
public LockProvider ( object lockTarget, string description ) : System
lockTarget object
description string
Результат System