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>

适用于