public static class ServiceCollectionExtensionsReference documentation and code samples for the AlloyDB v1 API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.AlloyDb.V1.dll
Methods
AddAlloyDBAdminClient(IServiceCollection, Action<AlloyDBAdminClientBuilder>)
public static IServiceCollection AddAlloyDBAdminClient(this IServiceCollection services, Action<AlloyDBAdminClientBuilder> action = null)Adds a singleton AlloyDBAdminClient 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 | 
        ActionAlloyDBAdminClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
  | 
      
| Returns | |
|---|---|
| Type | Description | 
IServiceCollection | 
        |
AddAlloyDBAdminClient(IServiceCollection, Action<IServiceProvider, AlloyDBAdminClientBuilder>)
public static IServiceCollection AddAlloyDBAdminClient(this IServiceCollection services, Action<IServiceProvider, AlloyDBAdminClientBuilder> action)Adds a singleton AlloyDBAdminClient 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.IServiceProviderAlloyDBAdminClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
  | 
      
| Returns | |
|---|---|
| Type | Description | 
IServiceCollection | 
        |
AddAlloyDBCSQLAdminClient(IServiceCollection, Action<AlloyDBCSQLAdminClientBuilder>)
public static IServiceCollection AddAlloyDBCSQLAdminClient(this IServiceCollection services, Action<AlloyDBCSQLAdminClientBuilder> action = null)Adds a singleton AlloyDBCSQLAdminClient 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 | 
        ActionAlloyDBCSQLAdminClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
  | 
      
| Returns | |
|---|---|
| Type | Description | 
IServiceCollection | 
        |
AddAlloyDBCSQLAdminClient(IServiceCollection, Action<IServiceProvider, AlloyDBCSQLAdminClientBuilder>)
public static IServiceCollection AddAlloyDBCSQLAdminClient(this IServiceCollection services, Action<IServiceProvider, AlloyDBCSQLAdminClientBuilder> action)Adds a singleton AlloyDBCSQLAdminClient 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.IServiceProviderAlloyDBCSQLAdminClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
  | 
      
| Returns | |
|---|---|
| Type | Description | 
IServiceCollection | 
        |