Show / Hide Table of Contents

Class ServiceCollectionExtensions

Static class to provide extension methods to configure API clients.

Inheritance
object
ServiceCollectionExtensions
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Google.Shopping.Merchant.Lfp.V1Beta.dll
Syntax
public static class ServiceCollectionExtensions

Methods

AddLfpInventoryServiceClient(IServiceCollection, Action<LfpInventoryServiceClientBuilder>)

Adds a singleton LfpInventoryServiceClient to services.

Declaration
public static IServiceCollection AddLfpInventoryServiceClient(this IServiceCollection services, Action<LfpInventoryServiceClientBuilder> 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<LfpInventoryServiceClientBuilder> action

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddLfpInventoryServiceClient(IServiceCollection, Action<IServiceProvider, LfpInventoryServiceClientBuilder>)

Adds a singleton LfpInventoryServiceClient to services.

Declaration
public static IServiceCollection AddLfpInventoryServiceClient(this IServiceCollection services, Action<IServiceProvider, LfpInventoryServiceClientBuilder> 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, LfpInventoryServiceClientBuilder> action

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddLfpMerchantStateServiceClient(IServiceCollection, Action<LfpMerchantStateServiceClientBuilder>)

Adds a singleton LfpMerchantStateServiceClient to services.

Declaration
public static IServiceCollection AddLfpMerchantStateServiceClient(this IServiceCollection services, Action<LfpMerchantStateServiceClientBuilder> 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<LfpMerchantStateServiceClientBuilder> action

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddLfpMerchantStateServiceClient(IServiceCollection, Action<IServiceProvider, LfpMerchantStateServiceClientBuilder>)

Adds a singleton LfpMerchantStateServiceClient to services.

Declaration
public static IServiceCollection AddLfpMerchantStateServiceClient(this IServiceCollection services, Action<IServiceProvider, LfpMerchantStateServiceClientBuilder> 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, LfpMerchantStateServiceClientBuilder> action

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddLfpSaleServiceClient(IServiceCollection, Action<LfpSaleServiceClientBuilder>)

Adds a singleton LfpSaleServiceClient to services.

Declaration
public static IServiceCollection AddLfpSaleServiceClient(this IServiceCollection services, Action<LfpSaleServiceClientBuilder> 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<LfpSaleServiceClientBuilder> action

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddLfpSaleServiceClient(IServiceCollection, Action<IServiceProvider, LfpSaleServiceClientBuilder>)

Adds a singleton LfpSaleServiceClient to services.

Declaration
public static IServiceCollection AddLfpSaleServiceClient(this IServiceCollection services, Action<IServiceProvider, LfpSaleServiceClientBuilder> 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, LfpSaleServiceClientBuilder> action

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddLfpStoreServiceClient(IServiceCollection, Action<LfpStoreServiceClientBuilder>)

Adds a singleton LfpStoreServiceClient to services.

Declaration
public static IServiceCollection AddLfpStoreServiceClient(this IServiceCollection services, Action<LfpStoreServiceClientBuilder> 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<LfpStoreServiceClientBuilder> action

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddLfpStoreServiceClient(IServiceCollection, Action<IServiceProvider, LfpStoreServiceClientBuilder>)

Adds a singleton LfpStoreServiceClient to services.

Declaration
public static IServiceCollection AddLfpStoreServiceClient(this IServiceCollection services, Action<IServiceProvider, LfpStoreServiceClientBuilder> 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, LfpStoreServiceClientBuilder> action

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection
In this article
Back to top Generated by DocFX