Interface ILifetimeManager<T>
Describes how to manage the lifetime of pool items.
Namespace: Solti.Utils.Primitives.Threading
Assembly: Solti.Utils.Primitives.dll
Syntax
public interface ILifetimeManager<T>
where T : class
Type Parameters
Name | Description |
---|---|
T |
Methods
CheckIn(T)
Resets the state of the item.
Declaration
void CheckIn(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
CheckOut(T)
Prepares the item to be checked out.
Declaration
void CheckOut(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Create()
Creates a new pool item.
Declaration
T Create()
Returns
Type | Description |
---|---|
T |
Dispose(T)
Disposes a pool item.
Declaration
void Dispose(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |