public static class ServiceCollectionExtensionsReference documentation and code samples for the Data Analytics API with Gemini v1beta API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.GeminiDataAnalytics.V1Beta.dll
Methods
AddDataAgentServiceClient(IServiceCollection, Action<DataAgentServiceClientBuilder>)
public static IServiceCollection AddDataAgentServiceClient(this IServiceCollection services, Action<DataAgentServiceClientBuilder> action = null)Adds a singleton DataAgentServiceClient 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 |
ActionDataAgentServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddDataAgentServiceClient(IServiceCollection, Action<IServiceProvider, DataAgentServiceClientBuilder>)
public static IServiceCollection AddDataAgentServiceClient(this IServiceCollection services, Action<IServiceProvider, DataAgentServiceClientBuilder> action)Adds a singleton DataAgentServiceClient 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.IServiceProviderDataAgentServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddDataChatServiceClient(IServiceCollection, Action<DataChatServiceClientBuilder>)
public static IServiceCollection AddDataChatServiceClient(this IServiceCollection services, Action<DataChatServiceClientBuilder> action = null)Adds a singleton DataChatServiceClient 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 |
ActionDataChatServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddDataChatServiceClient(IServiceCollection, Action<IServiceProvider, DataChatServiceClientBuilder>)
public static IServiceCollection AddDataChatServiceClient(this IServiceCollection services, Action<IServiceProvider, DataChatServiceClientBuilder> action)Adds a singleton DataChatServiceClient 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.IServiceProviderDataChatServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|