Google Cloud Talent Solution v4 API - Class ServiceCollectionExtensions (2.2.0)

Stay organized with collections Save and categorize content based on your preferences.
public static class ServiceCollectionExtensions

Reference documentation and code samples for the Google Cloud Talent Solution v4 API class ServiceCollectionExtensions.

Static class to provide extension methods to configure API clients.

Inheritance

Object > ServiceCollectionExtensions

Namespace

Microsoft.Extensions.DependencyInjection

Assembly

Google.Cloud.Talent.V4.dll

Methods

AddCompanyServiceClient(IServiceCollection, Action<CompanyServiceClientBuilder>)

public static IServiceCollection AddCompanyServiceClient(this IServiceCollection services, Action<CompanyServiceClientBuilder> action = null)

Adds a singleton CompanyServiceClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionAction<CompanyServiceClientBuilder>

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

Returns
TypeDescription
IServiceCollection

AddCompletionClient(IServiceCollection, Action<CompletionClientBuilder>)

public static IServiceCollection AddCompletionClient(this IServiceCollection services, Action<CompletionClientBuilder> action = null)

Adds a singleton CompletionClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionAction<CompletionClientBuilder>

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

Returns
TypeDescription
IServiceCollection

AddEventServiceClient(IServiceCollection, Action<EventServiceClientBuilder>)

public static IServiceCollection AddEventServiceClient(this IServiceCollection services, Action<EventServiceClientBuilder> action = null)

Adds a singleton EventServiceClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionAction<EventServiceClientBuilder>

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

Returns
TypeDescription
IServiceCollection

AddJobServiceClient(IServiceCollection, Action<JobServiceClientBuilder>)

public static IServiceCollection AddJobServiceClient(this IServiceCollection services, Action<JobServiceClientBuilder> action = null)

Adds a singleton JobServiceClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionAction<JobServiceClientBuilder>

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

Returns
TypeDescription
IServiceCollection

AddTenantServiceClient(IServiceCollection, Action<TenantServiceClientBuilder>)

public static IServiceCollection AddTenantServiceClient(this IServiceCollection services, Action<TenantServiceClientBuilder> action = null)

Adds a singleton TenantServiceClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionAction<TenantServiceClientBuilder>

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

Returns
TypeDescription
IServiceCollection