Freigeben über


ReusableResourceStore<TResource,TConstructorParameter>.Allocate Method

Definition

Allocates a new instance of the resource when one is not available in the cache.

protected:
 abstract TResource Allocate(TConstructorParameter constructorParameter);
protected:
 abstract TResource Allocate(TConstructorParameter constructorParameter);
 abstract TResource Allocate(TConstructorParameter constructorParameter);
protected abstract TResource Allocate (TConstructorParameter constructorParameter);
abstract member Allocate : 'ConstructorParameter -> 'Resource
Protected MustOverride Function Allocate (constructorParameter As TConstructorParameter) As TResource

Parameters

constructorParameter
TConstructorParameter

The parameter to pass when constructing the object.

Returns

TResource

A new instance of the resource.

Applies to