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