ServiceCollectionExtensions.AddPredictionEnginePool 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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>。