public static class ServiceCollectionExtensions
Reference 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionDataAgentServiceClientBuilder An 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderDataAgentServiceClientBuilder An 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionDataChatServiceClientBuilder An 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderDataChatServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |