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

Tungsten Suite

IReaderWriterStateLockerTStateInLock 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#
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
See Also