Google Cloud Key Management Service v1 API - Class ServiceCollectionExtensions (3.11.0)

public static class ServiceCollectionExtensions

Reference documentation and code samples for the Google Cloud Key Management Service v1 API class ServiceCollectionExtensions.

Static class to provide extension methods to configure API clients.

Inheritance

object > ServiceCollectionExtensions

Namespace

Microsoft.Extensions.DependencyInjection

Assembly

Google.Cloud.Kms.V1.dll

Methods

AddAutokeyAdminClient(IServiceCollection, Action<AutokeyAdminClientBuilder>)

public static IServiceCollection AddAutokeyAdminClient(this IServiceCollection services, Action<AutokeyAdminClientBuilder> action = null)

Adds a singleton AutokeyAdminClient 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 ActionAutokeyAdminClientBuilder

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

Returns
Type Description
IServiceCollection

AddAutokeyAdminClient(IServiceCollection, Action<IServiceProvider, AutokeyAdminClientBuilder>)

public static IServiceCollection AddAutokeyAdminClient(this IServiceCollection services, Action<IServiceProvider, AutokeyAdminClientBuilder> action)

Adds a singleton AutokeyAdminClient 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 ActionIServiceProviderAutokeyAdminClientBuilder

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

Returns
Type Description
IServiceCollection

AddAutokeyClient(IServiceCollection, Action<AutokeyClientBuilder>)

public static IServiceCollection AddAutokeyClient(this IServiceCollection services, Action<AutokeyClientBuilder> action = null)

Adds a singleton AutokeyClient 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 ActionAutokeyClientBuilder

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

Returns
Type Description
IServiceCollection

AddAutokeyClient(IServiceCollection, Action<IServiceProvider, AutokeyClientBuilder>)

public static IServiceCollection AddAutokeyClient(this IServiceCollection services, Action<IServiceProvider, AutokeyClientBuilder> action)

Adds a singleton AutokeyClient 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 ActionIServiceProviderAutokeyClientBuilder

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

Returns
Type Description
IServiceCollection

AddEkmServiceClient(IServiceCollection, Action<EkmServiceClientBuilder>)

public static IServiceCollection AddEkmServiceClient(this IServiceCollection services, Action<EkmServiceClientBuilder> action = null)

Adds a singleton EkmServiceClient 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 ActionEkmServiceClientBuilder

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

Returns
Type Description
IServiceCollection

AddEkmServiceClient(IServiceCollection, Action<IServiceProvider, EkmServiceClientBuilder>)

public static IServiceCollection AddEkmServiceClient(this IServiceCollection services, Action<IServiceProvider, EkmServiceClientBuilder> action)

Adds a singleton EkmServiceClient 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 ActionIServiceProviderEkmServiceClientBuilder

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

Returns
Type Description
IServiceCollection

AddKeyManagementServiceClient(IServiceCollection, Action<KeyManagementServiceClientBuilder>)

public static IServiceCollection AddKeyManagementServiceClient(this IServiceCollection services, Action<KeyManagementServiceClientBuilder> action = null)

Adds a singleton KeyManagementServiceClient 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 ActionKeyManagementServiceClientBuilder

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

Returns
Type Description
IServiceCollection

AddKeyManagementServiceClient(IServiceCollection, Action<IServiceProvider, KeyManagementServiceClientBuilder>)

public static IServiceCollection AddKeyManagementServiceClient(this IServiceCollection services, Action<IServiceProvider, KeyManagementServiceClientBuilder> action)

Adds a singleton KeyManagementServiceClient 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 ActionIServiceProviderKeyManagementServiceClientBuilder

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

Returns
Type Description
IServiceCollection