ServiceCollectionExtensions.AddPredictionEnginePool Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
AddPredictionEnginePool<TData,TPrediction>(IServiceCollection) |
PredictionEnginePool<TData,TPrediction> Добавляет в коллекцию служб и необходимые службы конфигурации. |
AddPredictionEnginePool<TData,TPrediction>(IServiceCollection, Func<IServiceProvider,PredictionEnginePool<TData,TPrediction>>) |
PredictionEnginePool<TData,TPrediction> Добавляет в коллекцию служб и необходимые службы конфигурации. |
AddPredictionEnginePool<TData,TPrediction>(IServiceCollection)
PredictionEnginePool<TData,TPrediction> Добавляет в коллекцию служб и необходимые службы конфигурации.
public static Microsoft.Extensions.ML.PredictionEnginePoolBuilder<TData,TPrediction> AddPredictionEnginePool<TData,TPrediction> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TData : class where TPrediction : class, new();
static member AddPredictionEnginePool : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.ML.PredictionEnginePoolBuilder<'Data, 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))> (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))
<Extension()>
Public Function AddPredictionEnginePool(Of TData As Class, TPrediction As Class) (services As IServiceCollection) As PredictionEnginePoolBuilder(Of TData, TPrediction)
Параметры типа
- TData
- TPrediction
Параметры
- services
- IServiceCollection
Коллекция IServiceCollection, в которую добавляются службы.
Возвращаемое значение
Объект PredictionEnginePoolBuilder<TData,TPrediction>, добавленный в коллекцию.
Применяется к
AddPredictionEnginePool<TData,TPrediction>(IServiceCollection, Func<IServiceProvider,PredictionEnginePool<TData,TPrediction>>)
PredictionEnginePool<TData,TPrediction> Добавляет в коллекцию служб и необходимые службы конфигурации.
public static Microsoft.Extensions.ML.PredictionEnginePoolBuilder<TData,TPrediction> AddPredictionEnginePool<TData,TPrediction> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Func<IServiceProvider,Microsoft.Extensions.ML.PredictionEnginePool<TData,TPrediction>> implementationFactory) where TData : class where TPrediction : class, new();
static member AddPredictionEnginePool : Microsoft.Extensions.DependencyInjection.IServiceCollection * Func<IServiceProvider, Microsoft.Extensions.ML.PredictionEnginePool<'Data, 'Prediction>> -> Microsoft.Extensions.ML.PredictionEnginePoolBuilder<'Data, 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))> (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))
<Extension()>
Public Function AddPredictionEnginePool(Of TData As Class, TPrediction As Class) (services As IServiceCollection, implementationFactory As Func(Of IServiceProvider, PredictionEnginePool(Of TData, TPrediction))) As PredictionEnginePoolBuilder(Of TData, TPrediction)
Параметры типа
- TData
- TPrediction
Параметры
- services
- IServiceCollection
Коллекция IServiceCollection, в которую добавляются службы.
- implementationFactory
- Func<IServiceProvider,PredictionEnginePool<TData,TPrediction>>
Фабрика, создающая объект PredictionEnginePoolBuilder<TData,TPrediction>.
Возвращаемое значение
Объект PredictionEnginePoolBuilder<TData,TPrediction>, добавленный в коллекцию.