Dialogflow v3 API - Class ServiceCollectionExtensions (2.7.0)

public static class ServiceCollectionExtensions

Reference documentation and code samples for the Dialogflow v3 API class ServiceCollectionExtensions.

Static class to provide extension methods to configure API clients.

Inheritance

object > ServiceCollectionExtensions

Namespace

Microsoft.Extensions.DependencyInjection

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Methods

AddAgentsClient(IServiceCollection, Action<AgentsClientBuilder>)

public static IServiceCollection AddAgentsClient(this IServiceCollection services, Action<AgentsClientBuilder> action = null)

Adds a singleton AgentsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionActionAgentsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddChangelogsClient(IServiceCollection, Action<ChangelogsClientBuilder>)

public static IServiceCollection AddChangelogsClient(this IServiceCollection services, Action<ChangelogsClientBuilder> action = null)

Adds a singleton ChangelogsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionActionChangelogsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddDeploymentsClient(IServiceCollection, Action<DeploymentsClientBuilder>)

public static IServiceCollection AddDeploymentsClient(this IServiceCollection services, Action<DeploymentsClientBuilder> action = null)

Adds a singleton DeploymentsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionActionDeploymentsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddEntityTypesClient(IServiceCollection, Action<EntityTypesClientBuilder>)

public static IServiceCollection AddEntityTypesClient(this IServiceCollection services, Action<EntityTypesClientBuilder> action = null)

Adds a singleton EntityTypesClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionActionEntityTypesClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddEnvironmentsClient(IServiceCollection, Action<EnvironmentsClientBuilder>)

public static IServiceCollection AddEnvironmentsClient(this IServiceCollection services, Action<EnvironmentsClientBuilder> action = null)

Adds a singleton EnvironmentsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionActionEnvironmentsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddExperimentsClient(IServiceCollection, Action<ExperimentsClientBuilder>)

public static IServiceCollection AddExperimentsClient(this IServiceCollection services, Action<ExperimentsClientBuilder> action = null)

Adds a singleton ExperimentsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionActionExperimentsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddFlowsClient(IServiceCollection, Action<FlowsClientBuilder>)

public static IServiceCollection AddFlowsClient(this IServiceCollection services, Action<FlowsClientBuilder> action = null)

Adds a singleton FlowsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionActionFlowsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddIntentsClient(IServiceCollection, Action<IntentsClientBuilder>)

public static IServiceCollection AddIntentsClient(this IServiceCollection services, Action<IntentsClientBuilder> action = null)

Adds a singleton IntentsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionActionIntentsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddPagesClient(IServiceCollection, Action<PagesClientBuilder>)

public static IServiceCollection AddPagesClient(this IServiceCollection services, Action<PagesClientBuilder> action = null)

Adds a singleton PagesClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionActionPagesClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddSecuritySettingsServiceClient(IServiceCollection, Action<SecuritySettingsServiceClientBuilder>)

public static IServiceCollection AddSecuritySettingsServiceClient(this IServiceCollection services, Action<SecuritySettingsServiceClientBuilder> action = null)

Adds a singleton SecuritySettingsServiceClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionActionSecuritySettingsServiceClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddSessionEntityTypesClient(IServiceCollection, Action<SessionEntityTypesClientBuilder>)

public static IServiceCollection AddSessionEntityTypesClient(this IServiceCollection services, Action<SessionEntityTypesClientBuilder> action = null)

Adds a singleton SessionEntityTypesClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionActionSessionEntityTypesClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddSessionsClient(IServiceCollection, Action<SessionsClientBuilder>)

public static IServiceCollection AddSessionsClient(this IServiceCollection services, Action<SessionsClientBuilder> action = null)

Adds a singleton SessionsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionActionSessionsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddTestCasesClient(IServiceCollection, Action<TestCasesClientBuilder>)

public static IServiceCollection AddTestCasesClient(this IServiceCollection services, Action<TestCasesClientBuilder> action = null)

Adds a singleton TestCasesClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionActionTestCasesClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddTransitionRouteGroupsClient(IServiceCollection, Action<TransitionRouteGroupsClientBuilder>)

public static IServiceCollection AddTransitionRouteGroupsClient(this IServiceCollection services, Action<TransitionRouteGroupsClientBuilder> action = null)

Adds a singleton TransitionRouteGroupsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionActionTransitionRouteGroupsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddVersionsClient(IServiceCollection, Action<VersionsClientBuilder>)

public static IServiceCollection AddVersionsClient(this IServiceCollection services, Action<VersionsClientBuilder> action = null)

Adds a singleton VersionsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionActionVersionsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddWebhooksClient(IServiceCollection, Action<WebhooksClientBuilder>)

public static IServiceCollection AddWebhooksClient(this IServiceCollection services, Action<WebhooksClientBuilder> action = null)

Adds a singleton WebhooksClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionActionWebhooksClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection