public static class ServiceCollectionExtensionsReference documentation and code samples for the Cloud API Registry v1 API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.ApiRegistry.V1.dll
Methods
AddCloudApiRegistryClient(IServiceCollection, Action<CloudApiRegistryClientBuilder>)
public static IServiceCollection AddCloudApiRegistryClient(this IServiceCollection services, Action<CloudApiRegistryClientBuilder> action = null)Adds a singleton CloudApiRegistryClient 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 |
ActionCloudApiRegistryClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddCloudApiRegistryClient(IServiceCollection, Action<IServiceProvider, CloudApiRegistryClientBuilder>)
public static IServiceCollection AddCloudApiRegistryClient(this IServiceCollection services, Action<IServiceProvider, CloudApiRegistryClientBuilder> action)Adds a singleton CloudApiRegistryClient 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.IServiceProviderCloudApiRegistryClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|