ReusableResourceStore<TResource>.CanReuse(TResource) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.