IStateLocker(TLocker, TState) Interface

Tungsten Suite

IStateLockerTLocker, TState Interface

The required implementation for a stateful locking object

Namespace:  W.Threading.Lockers
Assembly:  Tungsten.Threading.Lockers (in Tungsten.Threading.Lockers.dll) Version: 2.0.1
Syntax
C#
public interface IStateLocker<TLocker, TState> : ILocker<TLocker>, 
	ILocker

Type Parameters

TLocker

[Missing <typeparam name="TLocker"/> documentation for "T:W.Threading.Lockers.IStateLocker`2"]

TState

[Missing <typeparam name="TState"/> documentation for "T:W.Threading.Lockers.IStateLocker`2"]

The IStateLockerTLocker, TState type exposes the following members.

Properties
  NameDescription
Public propertyLocker
The object used for locking
(Inherited from ILockerTLocker.)
Top
Methods
  NameDescription
Public methodInLock(Action)
Perform some action in a lock
(Inherited from ILocker.)
Public methodInLock(ActionTState)
Perform some action in a lock
Public methodInLock(FuncTState, TState)
Perform some function in a lock
Public methodInLockTResult(FuncTResult)
Perform some function in a lock
(Inherited from ILocker.)
Public methodInLockAsync(Action) (Inherited from ILocker.)
Public methodInLockAsync(ActionTState)
Public methodInLockAsync(FuncTState, TState)
Asyncrhonously perform some function in a lock
Public methodInLockAsyncTResult(FuncTResult)
Asyncrhonously perform some function in a lock
(Inherited from ILocker.)
Top
See Also