public static class ServiceCollectionExtensionsReference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.Ces.V1.dll
Methods
AddAgentServiceClient(IServiceCollection, Action<AgentServiceClientBuilder>)
public static IServiceCollection AddAgentServiceClient(this IServiceCollection services, Action<AgentServiceClientBuilder> action = null)Adds a singleton AgentServiceClient 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 |
ActionAgentServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddAgentServiceClient(IServiceCollection, Action<IServiceProvider, AgentServiceClientBuilder>)
public static IServiceCollection AddAgentServiceClient(this IServiceCollection services, Action<IServiceProvider, AgentServiceClientBuilder> action)Adds a singleton AgentServiceClient 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.IServiceProviderAgentServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddSessionServiceClient(IServiceCollection, Action<SessionServiceClientBuilder>)
public static IServiceCollection AddSessionServiceClient(this IServiceCollection services, Action<SessionServiceClientBuilder> action = null)Adds a singleton SessionServiceClient 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 |
ActionSessionServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddSessionServiceClient(IServiceCollection, Action<IServiceProvider, SessionServiceClientBuilder>)
public static IServiceCollection AddSessionServiceClient(this IServiceCollection services, Action<IServiceProvider, SessionServiceClientBuilder> action)Adds a singleton SessionServiceClient 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.IServiceProviderSessionServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddToolServiceClient(IServiceCollection, Action<ToolServiceClientBuilder>)
public static IServiceCollection AddToolServiceClient(this IServiceCollection services, Action<ToolServiceClientBuilder> action = null)Adds a singleton ToolServiceClient 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 |
ActionToolServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddToolServiceClient(IServiceCollection, Action<IServiceProvider, ToolServiceClientBuilder>)
public static IServiceCollection AddToolServiceClient(this IServiceCollection services, Action<IServiceProvider, ToolServiceClientBuilder> action)Adds a singleton ToolServiceClient 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.IServiceProviderToolServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddWidgetServiceClient(IServiceCollection, Action<WidgetServiceClientBuilder>)
public static IServiceCollection AddWidgetServiceClient(this IServiceCollection services, Action<WidgetServiceClientBuilder> action = null)Adds a singleton WidgetServiceClient 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 |
ActionWidgetServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddWidgetServiceClient(IServiceCollection, Action<IServiceProvider, WidgetServiceClientBuilder>)
public static IServiceCollection AddWidgetServiceClient(this IServiceCollection services, Action<IServiceProvider, WidgetServiceClientBuilder> action)Adds a singleton WidgetServiceClient 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.IServiceProviderWidgetServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|