Class ServiceCollectionExtensions
Static class to provide extension methods to configure API clients.
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Google.Area120.Tables.V1Alpha1.dll
Syntax
public static class ServiceCollectionExtensions
Methods
AddTablesServiceClient(IServiceCollection, Action<TablesServiceClientBuilder>)
Adds a singleton TablesServiceClient to services
.
Declaration
public static IServiceCollection AddTablesServiceClient(this IServiceCollection services, Action<TablesServiceClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<TablesServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddTablesServiceClient(IServiceCollection, Action<IServiceProvider, TablesServiceClientBuilder>)
Adds a singleton TablesServiceClient to services
.
Declaration
public static IServiceCollection AddTablesServiceClient(this IServiceCollection services, Action<IServiceProvider, TablesServiceClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, TablesServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |