ServiceCollectionExtensions.AddPredictionEnginePool Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddPredictionEnginePool<TData,TPrediction>(IServiceCollection) |
Adds a PredictionEnginePool<TData,TPrediction> and required config services to the service collection. |
AddPredictionEnginePool<TData,TPrediction>(IServiceCollection, Func<IServiceProvider,PredictionEnginePool<TData,TPrediction>>) |
Adds a PredictionEnginePool<TData,TPrediction> and required config services to the service collection. |
AddPredictionEnginePool<TData,TPrediction>(IServiceCollection)
Adds a PredictionEnginePool<TData,TPrediction> and required config services to the service collection.
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)
Type Parameters
- TData
- TPrediction
Parameters
- services
- IServiceCollection
The IServiceCollection to add services to.
Returns
The PredictionEnginePoolBuilder<TData,TPrediction> that was added to the collection.
Applies to
AddPredictionEnginePool<TData,TPrediction>(IServiceCollection, Func<IServiceProvider,PredictionEnginePool<TData,TPrediction>>)
Adds a PredictionEnginePool<TData,TPrediction> and required config services to the service collection.
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)
Type Parameters
- TData
- TPrediction
Parameters
- services
- IServiceCollection
The IServiceCollection to add services to.
- implementationFactory
- Func<IServiceProvider,PredictionEnginePool<TData,TPrediction>>
The factory that creates the PredictionEnginePoolBuilder<TData,TPrediction>.
Returns
The PredictionEnginePoolBuilder<TData,TPrediction> that was added to the collection.