Class ServiceCollectionExtensions
Static class to provide extension methods to configure API clients.
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
public static class ServiceCollectionExtensions
Methods
AddAccountIssueServiceClient(IServiceCollection, Action<AccountIssueServiceClientBuilder>)
Adds a singleton AccountIssueServiceClient to services.
Declaration
public static IServiceCollection AddAccountIssueServiceClient(this IServiceCollection services, Action<AccountIssueServiceClientBuilder> 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<AccountIssueServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddAccountIssueServiceClient(IServiceCollection, Action<IServiceProvider, AccountIssueServiceClientBuilder>)
Adds a singleton AccountIssueServiceClient to services.
Declaration
public static IServiceCollection AddAccountIssueServiceClient(this IServiceCollection services, Action<IServiceProvider, AccountIssueServiceClientBuilder> 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, AccountIssueServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddAccountTaxServiceClient(IServiceCollection, Action<AccountTaxServiceClientBuilder>)
Adds a singleton AccountTaxServiceClient to services.
Declaration
public static IServiceCollection AddAccountTaxServiceClient(this IServiceCollection services, Action<AccountTaxServiceClientBuilder> 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<AccountTaxServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddAccountTaxServiceClient(IServiceCollection, Action<IServiceProvider, AccountTaxServiceClientBuilder>)
Adds a singleton AccountTaxServiceClient to services.
Declaration
public static IServiceCollection AddAccountTaxServiceClient(this IServiceCollection services, Action<IServiceProvider, AccountTaxServiceClientBuilder> 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, AccountTaxServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddAccountsServiceClient(IServiceCollection, Action<AccountsServiceClientBuilder>)
Adds a singleton AccountsServiceClient to services.
Declaration
public static IServiceCollection AddAccountsServiceClient(this IServiceCollection services, Action<AccountsServiceClientBuilder> 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<AccountsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddAccountsServiceClient(IServiceCollection, Action<IServiceProvider, AccountsServiceClientBuilder>)
Adds a singleton AccountsServiceClient to services.
Declaration
public static IServiceCollection AddAccountsServiceClient(this IServiceCollection services, Action<IServiceProvider, AccountsServiceClientBuilder> 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, AccountsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddAutofeedSettingsServiceClient(IServiceCollection, Action<AutofeedSettingsServiceClientBuilder>)
Adds a singleton AutofeedSettingsServiceClient to services.
Declaration
public static IServiceCollection AddAutofeedSettingsServiceClient(this IServiceCollection services, Action<AutofeedSettingsServiceClientBuilder> 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<AutofeedSettingsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddAutofeedSettingsServiceClient(IServiceCollection, Action<IServiceProvider, AutofeedSettingsServiceClientBuilder>)
Adds a singleton AutofeedSettingsServiceClient to services.
Declaration
public static IServiceCollection AddAutofeedSettingsServiceClient(this IServiceCollection services, Action<IServiceProvider, AutofeedSettingsServiceClientBuilder> 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, AutofeedSettingsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddAutomaticImprovementsServiceClient(IServiceCollection, Action<AutomaticImprovementsServiceClientBuilder>)
Adds a singleton AutomaticImprovementsServiceClient to services.
Declaration
public static IServiceCollection AddAutomaticImprovementsServiceClient(this IServiceCollection services, Action<AutomaticImprovementsServiceClientBuilder> 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<AutomaticImprovementsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddAutomaticImprovementsServiceClient(IServiceCollection, Action<IServiceProvider, AutomaticImprovementsServiceClientBuilder>)
Adds a singleton AutomaticImprovementsServiceClient to services.
Declaration
public static IServiceCollection AddAutomaticImprovementsServiceClient(this IServiceCollection services, Action<IServiceProvider, AutomaticImprovementsServiceClientBuilder> 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, AutomaticImprovementsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddBusinessIdentityServiceClient(IServiceCollection, Action<BusinessIdentityServiceClientBuilder>)
Adds a singleton BusinessIdentityServiceClient to services.
Declaration
public static IServiceCollection AddBusinessIdentityServiceClient(this IServiceCollection services, Action<BusinessIdentityServiceClientBuilder> 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<BusinessIdentityServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddBusinessIdentityServiceClient(IServiceCollection, Action<IServiceProvider, BusinessIdentityServiceClientBuilder>)
Adds a singleton BusinessIdentityServiceClient to services.
Declaration
public static IServiceCollection AddBusinessIdentityServiceClient(this IServiceCollection services, Action<IServiceProvider, BusinessIdentityServiceClientBuilder> 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, BusinessIdentityServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddBusinessInfoServiceClient(IServiceCollection, Action<BusinessInfoServiceClientBuilder>)
Adds a singleton BusinessInfoServiceClient to services.
Declaration
public static IServiceCollection AddBusinessInfoServiceClient(this IServiceCollection services, Action<BusinessInfoServiceClientBuilder> 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<BusinessInfoServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddBusinessInfoServiceClient(IServiceCollection, Action<IServiceProvider, BusinessInfoServiceClientBuilder>)
Adds a singleton BusinessInfoServiceClient to services.
Declaration
public static IServiceCollection AddBusinessInfoServiceClient(this IServiceCollection services, Action<IServiceProvider, BusinessInfoServiceClientBuilder> 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, BusinessInfoServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddCheckoutSettingsServiceClient(IServiceCollection, Action<CheckoutSettingsServiceClientBuilder>)
Adds a singleton CheckoutSettingsServiceClient to services.
Declaration
public static IServiceCollection AddCheckoutSettingsServiceClient(this IServiceCollection services, Action<CheckoutSettingsServiceClientBuilder> 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<CheckoutSettingsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddCheckoutSettingsServiceClient(IServiceCollection, Action<IServiceProvider, CheckoutSettingsServiceClientBuilder>)
Adds a singleton CheckoutSettingsServiceClient to services.
Declaration
public static IServiceCollection AddCheckoutSettingsServiceClient(this IServiceCollection services, Action<IServiceProvider, CheckoutSettingsServiceClientBuilder> 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, CheckoutSettingsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddEmailPreferencesServiceClient(IServiceCollection, Action<EmailPreferencesServiceClientBuilder>)
Adds a singleton EmailPreferencesServiceClient to services.
Declaration
public static IServiceCollection AddEmailPreferencesServiceClient(this IServiceCollection services, Action<EmailPreferencesServiceClientBuilder> 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<EmailPreferencesServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddEmailPreferencesServiceClient(IServiceCollection, Action<IServiceProvider, EmailPreferencesServiceClientBuilder>)
Adds a singleton EmailPreferencesServiceClient to services.
Declaration
public static IServiceCollection AddEmailPreferencesServiceClient(this IServiceCollection services, Action<IServiceProvider, EmailPreferencesServiceClientBuilder> 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, EmailPreferencesServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddGbpAccountsServiceClient(IServiceCollection, Action<GbpAccountsServiceClientBuilder>)
Adds a singleton GbpAccountsServiceClient to services.
Declaration
public static IServiceCollection AddGbpAccountsServiceClient(this IServiceCollection services, Action<GbpAccountsServiceClientBuilder> 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<GbpAccountsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddGbpAccountsServiceClient(IServiceCollection, Action<IServiceProvider, GbpAccountsServiceClientBuilder>)
Adds a singleton GbpAccountsServiceClient to services.
Declaration
public static IServiceCollection AddGbpAccountsServiceClient(this IServiceCollection services, Action<IServiceProvider, GbpAccountsServiceClientBuilder> 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, GbpAccountsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddHomepageServiceClient(IServiceCollection, Action<HomepageServiceClientBuilder>)
Adds a singleton HomepageServiceClient to services.
Declaration
public static IServiceCollection AddHomepageServiceClient(this IServiceCollection services, Action<HomepageServiceClientBuilder> 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<HomepageServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddHomepageServiceClient(IServiceCollection, Action<IServiceProvider, HomepageServiceClientBuilder>)
Adds a singleton HomepageServiceClient to services.
Declaration
public static IServiceCollection AddHomepageServiceClient(this IServiceCollection services, Action<IServiceProvider, HomepageServiceClientBuilder> 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, HomepageServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddLfpProvidersServiceClient(IServiceCollection, Action<LfpProvidersServiceClientBuilder>)
Adds a singleton LfpProvidersServiceClient to services.
Declaration
public static IServiceCollection AddLfpProvidersServiceClient(this IServiceCollection services, Action<LfpProvidersServiceClientBuilder> 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<LfpProvidersServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddLfpProvidersServiceClient(IServiceCollection, Action<IServiceProvider, LfpProvidersServiceClientBuilder>)
Adds a singleton LfpProvidersServiceClient to services.
Declaration
public static IServiceCollection AddLfpProvidersServiceClient(this IServiceCollection services, Action<IServiceProvider, LfpProvidersServiceClientBuilder> 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, LfpProvidersServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddOmnichannelSettingsServiceClient(IServiceCollection, Action<OmnichannelSettingsServiceClientBuilder>)
Adds a singleton OmnichannelSettingsServiceClient to services.
Declaration
public static IServiceCollection AddOmnichannelSettingsServiceClient(this IServiceCollection services, Action<OmnichannelSettingsServiceClientBuilder> 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<OmnichannelSettingsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddOmnichannelSettingsServiceClient(IServiceCollection, Action<IServiceProvider, OmnichannelSettingsServiceClientBuilder>)
Adds a singleton OmnichannelSettingsServiceClient to services.
Declaration
public static IServiceCollection AddOmnichannelSettingsServiceClient(this IServiceCollection services, Action<IServiceProvider, OmnichannelSettingsServiceClientBuilder> 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, OmnichannelSettingsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddOnlineReturnPolicyServiceClient(IServiceCollection, Action<OnlineReturnPolicyServiceClientBuilder>)
Adds a singleton OnlineReturnPolicyServiceClient to services.
Declaration
public static IServiceCollection AddOnlineReturnPolicyServiceClient(this IServiceCollection services, Action<OnlineReturnPolicyServiceClientBuilder> 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<OnlineReturnPolicyServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddOnlineReturnPolicyServiceClient(IServiceCollection, Action<IServiceProvider, OnlineReturnPolicyServiceClientBuilder>)
Adds a singleton OnlineReturnPolicyServiceClient to services.
Declaration
public static IServiceCollection AddOnlineReturnPolicyServiceClient(this IServiceCollection services, Action<IServiceProvider, OnlineReturnPolicyServiceClientBuilder> 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, OnlineReturnPolicyServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddProgramsServiceClient(IServiceCollection, Action<ProgramsServiceClientBuilder>)
Adds a singleton ProgramsServiceClient to services.
Declaration
public static IServiceCollection AddProgramsServiceClient(this IServiceCollection services, Action<ProgramsServiceClientBuilder> 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<ProgramsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddProgramsServiceClient(IServiceCollection, Action<IServiceProvider, ProgramsServiceClientBuilder>)
Adds a singleton ProgramsServiceClient to services.
Declaration
public static IServiceCollection AddProgramsServiceClient(this IServiceCollection services, Action<IServiceProvider, ProgramsServiceClientBuilder> 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, ProgramsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddRegionsServiceClient(IServiceCollection, Action<RegionsServiceClientBuilder>)
Adds a singleton RegionsServiceClient to services.
Declaration
public static IServiceCollection AddRegionsServiceClient(this IServiceCollection services, Action<RegionsServiceClientBuilder> 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<RegionsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddRegionsServiceClient(IServiceCollection, Action<IServiceProvider, RegionsServiceClientBuilder>)
Adds a singleton RegionsServiceClient to services.
Declaration
public static IServiceCollection AddRegionsServiceClient(this IServiceCollection services, Action<IServiceProvider, RegionsServiceClientBuilder> 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, RegionsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddShippingSettingsServiceClient(IServiceCollection, Action<ShippingSettingsServiceClientBuilder>)
Adds a singleton ShippingSettingsServiceClient to services.
Declaration
public static IServiceCollection AddShippingSettingsServiceClient(this IServiceCollection services, Action<ShippingSettingsServiceClientBuilder> 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<ShippingSettingsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddShippingSettingsServiceClient(IServiceCollection, Action<IServiceProvider, ShippingSettingsServiceClientBuilder>)
Adds a singleton ShippingSettingsServiceClient to services.
Declaration
public static IServiceCollection AddShippingSettingsServiceClient(this IServiceCollection services, Action<IServiceProvider, ShippingSettingsServiceClientBuilder> 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, ShippingSettingsServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddTermsOfServiceAgreementStateServiceClient(IServiceCollection, Action<TermsOfServiceAgreementStateServiceClientBuilder>)
Adds a singleton TermsOfServiceAgreementStateServiceClient to
services.
Declaration
public static IServiceCollection AddTermsOfServiceAgreementStateServiceClient(this IServiceCollection services, Action<TermsOfServiceAgreementStateServiceClientBuilder> 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<TermsOfServiceAgreementStateServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddTermsOfServiceAgreementStateServiceClient(IServiceCollection, Action<IServiceProvider, TermsOfServiceAgreementStateServiceClientBuilder>)
Adds a singleton TermsOfServiceAgreementStateServiceClient to
services.
Declaration
public static IServiceCollection AddTermsOfServiceAgreementStateServiceClient(this IServiceCollection services, Action<IServiceProvider, TermsOfServiceAgreementStateServiceClientBuilder> 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, TermsOfServiceAgreementStateServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddTermsOfServiceServiceClient(IServiceCollection, Action<TermsOfServiceServiceClientBuilder>)
Adds a singleton TermsOfServiceServiceClient to services.
Declaration
public static IServiceCollection AddTermsOfServiceServiceClient(this IServiceCollection services, Action<TermsOfServiceServiceClientBuilder> 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<TermsOfServiceServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddTermsOfServiceServiceClient(IServiceCollection, Action<IServiceProvider, TermsOfServiceServiceClientBuilder>)
Adds a singleton TermsOfServiceServiceClient to services.
Declaration
public static IServiceCollection AddTermsOfServiceServiceClient(this IServiceCollection services, Action<IServiceProvider, TermsOfServiceServiceClientBuilder> 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, TermsOfServiceServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddUserServiceClient(IServiceCollection, Action<UserServiceClientBuilder>)
Adds a singleton UserServiceClient to services.
Declaration
public static IServiceCollection AddUserServiceClient(this IServiceCollection services, Action<UserServiceClientBuilder> 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<UserServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddUserServiceClient(IServiceCollection, Action<IServiceProvider, UserServiceClientBuilder>)
Adds a singleton UserServiceClient to services.
Declaration
public static IServiceCollection AddUserServiceClient(this IServiceCollection services, Action<IServiceProvider, UserServiceClientBuilder> 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, UserServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
| Type | Description |
|---|---|
| IServiceCollection |