ReaderWriterLocker(TState).InLock Method (LockTypeEnum, Action(TState))

Tungsten Suite

ReaderWriterLockerTStateInLock Method (LockTypeEnum, ActionTState)

Executes an action from within a ReaderWriterLockSlim

Namespace:  W.Threading.Lockers
Assembly:  Tungsten.Threading.Lockers (in Tungsten.Threading.Lockers.dll) Version: 2.0.1
Syntax
C#
public void InLock(
	LockTypeEnum lockType,
	Action<TState> action
)

Parameters

lockType
Type: W.Threading.LockersLockTypeEnum
Specifies whether to use a Read or Write lock
action
Type: SystemActionTState
The action to run

Implements

IReaderWriterStateLockerTStateInLock(LockTypeEnum, ActionTState)
See Also