Class ServiceCollectionExtensions
Static class to provide extension methods to configure API clients.
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Google.Apps.Meet.V2.dll
Syntax
public static class ServiceCollectionExtensions
Methods
AddConferenceRecordsServiceClient(IServiceCollection, Action<ConferenceRecordsServiceClientBuilder>)
Adds a singleton ConferenceRecordsServiceClient to services
.
Declaration
public static IServiceCollection AddConferenceRecordsServiceClient(this IServiceCollection services, Action<ConferenceRecordsServiceClientBuilder> 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<ConferenceRecordsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddConferenceRecordsServiceClient(IServiceCollection, Action<IServiceProvider, ConferenceRecordsServiceClientBuilder>)
Adds a singleton ConferenceRecordsServiceClient to services
.
Declaration
public static IServiceCollection AddConferenceRecordsServiceClient(this IServiceCollection services, Action<IServiceProvider, ConferenceRecordsServiceClientBuilder> 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, ConferenceRecordsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddSpacesServiceClient(IServiceCollection, Action<SpacesServiceClientBuilder>)
Adds a singleton SpacesServiceClient to services
.
Declaration
public static IServiceCollection AddSpacesServiceClient(this IServiceCollection services, Action<SpacesServiceClientBuilder> 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<SpacesServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddSpacesServiceClient(IServiceCollection, Action<IServiceProvider, SpacesServiceClientBuilder>)
Adds a singleton SpacesServiceClient to services
.
Declaration
public static IServiceCollection AddSpacesServiceClient(this IServiceCollection services, Action<IServiceProvider, SpacesServiceClientBuilder> 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, SpacesServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |