Share via


ReusableResourceStore<TResource>.CanReuse(TResource) Method

Definition

Validates that an already-cached resource value is safe to reuse when Acquire is called.

protected:
 virtual bool CanReuse(TResource value);
protected:
 virtual bool CanReuse(TResource value);
 virtual bool CanReuse(TResource value);
protected virtual bool CanReuse (TResource value);
abstract member CanReuse : 'Resource -> bool
override this.CanReuse : 'Resource -> bool
Protected Overridable Function CanReuse (value As TResource) As Boolean

Parameters

value
TResource

The cached value that is about to be reused during Acquire.

Returns

True if the object is in a reusable state, otherwise false.

Applies to