ReusableResourceStore<TResource,TConstructorParameter>.Allocate(TConstructorParameter) Метод

Определение

Выделяет новый экземпляр ресурса, если он недоступен в кэше.

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

Параметры

constructorParameter
TConstructorParameter

Параметр, передаваемый при конструировании объекта.

Возвращаемое значение

TResource

Новый экземпляр ресурса.

Применяется к