Cloud Controls Partner v1beta API - Class ServiceCollectionExtensions (1.0.0-beta02)

public static class ServiceCollectionExtensions

Reference documentation and code samples for the Cloud Controls Partner v1beta API class ServiceCollectionExtensions.

Static class to provide extension methods to configure API clients.

Inheritance

object > ServiceCollectionExtensions

Namespace

Microsoft.Extensions.DependencyInjection

Assembly

Google.Cloud.CloudControlsPartner.V1Beta.dll

Methods

AddCloudControlsPartnerCoreClient(IServiceCollection, Action<CloudControlsPartnerCoreClientBuilder>)

public static IServiceCollection AddCloudControlsPartnerCoreClient(this IServiceCollection services, Action<CloudControlsPartnerCoreClientBuilder> action = null)

Adds a singleton CloudControlsPartnerCoreClient 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 ActionCloudControlsPartnerCoreClientBuilder

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

Returns
Type Description
IServiceCollection

AddCloudControlsPartnerCoreClient(IServiceCollection, Action<IServiceProvider, CloudControlsPartnerCoreClientBuilder>)

public static IServiceCollection AddCloudControlsPartnerCoreClient(this IServiceCollection services, Action<IServiceProvider, CloudControlsPartnerCoreClientBuilder> action)

Adds a singleton CloudControlsPartnerCoreClient 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 ActionIServiceProviderCloudControlsPartnerCoreClientBuilder

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

Returns
Type Description
IServiceCollection

AddCloudControlsPartnerMonitoringClient(IServiceCollection, Action<CloudControlsPartnerMonitoringClientBuilder>)

public static IServiceCollection AddCloudControlsPartnerMonitoringClient(this IServiceCollection services, Action<CloudControlsPartnerMonitoringClientBuilder> action = null)

Adds a singleton CloudControlsPartnerMonitoringClient 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 ActionCloudControlsPartnerMonitoringClientBuilder

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

Returns
Type Description
IServiceCollection

AddCloudControlsPartnerMonitoringClient(IServiceCollection, Action<IServiceProvider, CloudControlsPartnerMonitoringClientBuilder>)

public static IServiceCollection AddCloudControlsPartnerMonitoringClient(this IServiceCollection services, Action<IServiceProvider, CloudControlsPartnerMonitoringClientBuilder> action)

Adds a singleton CloudControlsPartnerMonitoringClient 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 ActionIServiceProviderCloudControlsPartnerMonitoringClientBuilder

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

Returns
Type Description
IServiceCollection