Class CheckoutPolicy
Describes the Get(CancellationToken) behavior when the request can not be granted.
Inheritance
System.Object
CheckoutPolicy
Namespace: Solti.Utils.Primitives.Threading
Assembly: Solti.Utils.Primitives.dll
Syntax
public sealed class CheckoutPolicy : Enum
Fields
Block
The calling thread is blocked until the request can be served.
Declaration
public const CheckoutPolicy Block
Field Value
Type | Description |
---|---|
CheckoutPolicy |
Discard
The pool discards the request and returns NULL.
Declaration
public const CheckoutPolicy Discard
Field Value
Type | Description |
---|---|
CheckoutPolicy |
Throw
An System.InvalidOperationException is thrown.
Declaration
public const CheckoutPolicy Throw
Field Value
Type | Description |
---|---|
CheckoutPolicy |
value__
Declaration
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |