public static class ServiceCollectionExtensionsReference documentation and code samples for the Vision AI v1 API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.VisionAI.V1.dll
Methods
AddAppPlatformClient(IServiceCollection, Action<AppPlatformClientBuilder>)
public static IServiceCollection AddAppPlatformClient(this IServiceCollection services, Action<AppPlatformClientBuilder> action = null)Adds a singleton AppPlatformClient 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 |
ActionAppPlatformClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddAppPlatformClient(IServiceCollection, Action<IServiceProvider, AppPlatformClientBuilder>)
public static IServiceCollection AddAppPlatformClient(this IServiceCollection services, Action<IServiceProvider, AppPlatformClientBuilder> action)Adds a singleton AppPlatformClient 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 |
ActionSystem.IServiceProviderAppPlatformClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddHealthCheckServiceClient(IServiceCollection, Action<HealthCheckServiceClientBuilder>)
public static IServiceCollection AddHealthCheckServiceClient(this IServiceCollection services, Action<HealthCheckServiceClientBuilder> action = null)Adds a singleton HealthCheckServiceClient 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 |
ActionHealthCheckServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddHealthCheckServiceClient(IServiceCollection, Action<IServiceProvider, HealthCheckServiceClientBuilder>)
public static IServiceCollection AddHealthCheckServiceClient(this IServiceCollection services, Action<IServiceProvider, HealthCheckServiceClientBuilder> action)Adds a singleton HealthCheckServiceClient 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 |
ActionSystem.IServiceProviderHealthCheckServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddLiveVideoAnalyticsClient(IServiceCollection, Action<LiveVideoAnalyticsClientBuilder>)
public static IServiceCollection AddLiveVideoAnalyticsClient(this IServiceCollection services, Action<LiveVideoAnalyticsClientBuilder> action = null)Adds a singleton LiveVideoAnalyticsClient 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 |
ActionLiveVideoAnalyticsClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddLiveVideoAnalyticsClient(IServiceCollection, Action<IServiceProvider, LiveVideoAnalyticsClientBuilder>)
public static IServiceCollection AddLiveVideoAnalyticsClient(this IServiceCollection services, Action<IServiceProvider, LiveVideoAnalyticsClientBuilder> action)Adds a singleton LiveVideoAnalyticsClient 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 |
ActionSystem.IServiceProviderLiveVideoAnalyticsClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddStreamingServiceClient(IServiceCollection, Action<StreamingServiceClientBuilder>)
public static IServiceCollection AddStreamingServiceClient(this IServiceCollection services, Action<StreamingServiceClientBuilder> action = null)Adds a singleton StreamingServiceClient 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 |
ActionStreamingServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddStreamingServiceClient(IServiceCollection, Action<IServiceProvider, StreamingServiceClientBuilder>)
public static IServiceCollection AddStreamingServiceClient(this IServiceCollection services, Action<IServiceProvider, StreamingServiceClientBuilder> action)Adds a singleton StreamingServiceClient 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 |
ActionSystem.IServiceProviderStreamingServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddStreamsServiceClient(IServiceCollection, Action<StreamsServiceClientBuilder>)
public static IServiceCollection AddStreamsServiceClient(this IServiceCollection services, Action<StreamsServiceClientBuilder> action = null)Adds a singleton StreamsServiceClient 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 |
ActionStreamsServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddStreamsServiceClient(IServiceCollection, Action<IServiceProvider, StreamsServiceClientBuilder>)
public static IServiceCollection AddStreamsServiceClient(this IServiceCollection services, Action<IServiceProvider, StreamsServiceClientBuilder> action)Adds a singleton StreamsServiceClient 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 |
ActionSystem.IServiceProviderStreamsServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddWarehouseClient(IServiceCollection, Action<WarehouseClientBuilder>)
public static IServiceCollection AddWarehouseClient(this IServiceCollection services, Action<WarehouseClientBuilder> action = null)Adds a singleton WarehouseClient 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 |
ActionWarehouseClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddWarehouseClient(IServiceCollection, Action<IServiceProvider, WarehouseClientBuilder>)
public static IServiceCollection AddWarehouseClient(this IServiceCollection services, Action<IServiceProvider, WarehouseClientBuilder> action)Adds a singleton WarehouseClient 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 |
ActionSystem.IServiceProviderWarehouseClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|