public static class ServiceCollectionExtensionsReference documentation and code samples for the Cloud Controls Partner v1beta API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
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 |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionCloudControlsPartnerCoreClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| 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 |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderCloudControlsPartnerCoreClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| 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 |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionCloudControlsPartnerMonitoringClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| 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 |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderCloudControlsPartnerMonitoringClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|