public static class ServiceCollectionExtensionsStatic class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.ResourceManager.V3.dll
Methods
AddFoldersClient(IServiceCollection, Action<FoldersClientBuilder>)
public static IServiceCollection AddFoldersClient(this IServiceCollection services, Action<FoldersClientBuilder> action = null)Adds a singleton FoldersClient 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 |
Action<FoldersClientBuilder>An optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddOrganizationsClient(IServiceCollection, Action<OrganizationsClientBuilder>)
public static IServiceCollection AddOrganizationsClient(this IServiceCollection services, Action<OrganizationsClientBuilder> action = null)Adds a singleton OrganizationsClient 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 |
Action<OrganizationsClientBuilder>An optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddProjectsClient(IServiceCollection, Action<ProjectsClientBuilder>)
public static IServiceCollection AddProjectsClient(this IServiceCollection services, Action<ProjectsClientBuilder> action = null)Adds a singleton ProjectsClient 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 |
Action<ProjectsClientBuilder>An optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddTagBindingsClient(IServiceCollection, Action<TagBindingsClientBuilder>)
public static IServiceCollection AddTagBindingsClient(this IServiceCollection services, Action<TagBindingsClientBuilder> action = null)Adds a singleton TagBindingsClient 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 |
Action<TagBindingsClientBuilder>An optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddTagKeysClient(IServiceCollection, Action<TagKeysClientBuilder>)
public static IServiceCollection AddTagKeysClient(this IServiceCollection services, Action<TagKeysClientBuilder> action = null)Adds a singleton TagKeysClient 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 |
Action<TagKeysClientBuilder>An optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddTagValuesClient(IServiceCollection, Action<TagValuesClientBuilder>)
public static IServiceCollection AddTagValuesClient(this IServiceCollection services, Action<TagValuesClientBuilder> action = null)Adds a singleton TagValuesClient 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 |
Action<TagValuesClientBuilder>An optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|