public static class ServiceCollectionExtensionsReference documentation and code samples for the Google AutoML v1 API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.AutoML.V1.dll
Methods
AddAutoMlClient(IServiceCollection, Action<AutoMlClientBuilder>)
public static IServiceCollection AddAutoMlClient(this IServiceCollection services, Action<AutoMlClientBuilder> action = null)Adds a singleton AutoMlClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionAutoMlClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddAutoMlClient(IServiceCollection, Action<IServiceProvider, AutoMlClientBuilder>)
public static IServiceCollection AddAutoMlClient(this IServiceCollection services, Action<IServiceProvider, AutoMlClientBuilder> action)Adds a singleton AutoMlClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionIServiceProviderAutoMlClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddPredictionServiceClient(IServiceCollection, Action<PredictionServiceClientBuilder>)
public static IServiceCollection AddPredictionServiceClient(this IServiceCollection services, Action<PredictionServiceClientBuilder> action = null)Adds a singleton PredictionServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionPredictionServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddPredictionServiceClient(IServiceCollection, Action<IServiceProvider, PredictionServiceClientBuilder>)
public static IServiceCollection AddPredictionServiceClient(this IServiceCollection services, Action<IServiceProvider, PredictionServiceClientBuilder> action)Adds a singleton PredictionServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionIServiceProviderPredictionServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|