[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis documentation covers the \u003ccode\u003eServiceCollectionExtensions\u003c/code\u003e static class, which provides methods for configuring API clients for Google Cloud Commerce Consumer Procurement v1.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API documentation is 1.4.0, with previous versions including 1.3.0, 1.2.0, 1.1.0, and 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddConsumerProcurementServiceClient\u003c/code\u003e method adds a singleton \u003ccode\u003eConsumerProcurementServiceClient\u003c/code\u003e to an \u003ccode\u003eIServiceCollection\u003c/code\u003e, with options to customize the client via an optional \u003ccode\u003eAction\u003c/code\u003e delegate.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddLicenseManagementServiceClient\u003c/code\u003e method adds a singleton \u003ccode\u003eLicenseManagementServiceClient\u003c/code\u003e to an \u003ccode\u003eIServiceCollection\u003c/code\u003e, also providing an option to configure the client using an optional \u003ccode\u003eAction\u003c/code\u003e delegate.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServiceCollectionExtensions\u003c/code\u003e class inherits from the base \u003ccode\u003eobject\u003c/code\u003e class, giving it its basic functionality.\u003c/p\u003e\n"]]],[],null,["# Cloud Commerce Consumer Procurement v1 API - Class ServiceCollectionExtensions (1.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.4.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.3.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.2.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.1.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.0.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions) \n\n public static class ServiceCollectionExtensions\n\nReference documentation and code samples for the Cloud Commerce Consumer Procurement v1 API class ServiceCollectionExtensions.\n\nStatic class to provide extension methods to configure API clients. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ServiceCollectionExtensions \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Microsoft.Extensions.DependencyInjection](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Microsoft.Extensions.DependencyInjection)\n\nAssembly\n--------\n\nGoogle.Cloud.Commerce.Consumer.Procurement.V1.dll\n\nMethods\n-------\n\n### AddConsumerProcurementServiceClient(IServiceCollection, Action\\\u003cConsumerProcurementServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddConsumerProcurementServiceClient(this IServiceCollection services, Action\u003cConsumerProcurementServiceClientBuilder\u003e action = null)\n\nAdds a singleton [ConsumerProcurementServiceClient](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient) to `services`.\n\n### AddConsumerProcurementServiceClient(IServiceCollection, Action\\\u003cIServiceProvider, ConsumerProcurementServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddConsumerProcurementServiceClient(this IServiceCollection services, Action\u003cIServiceProvider, ConsumerProcurementServiceClientBuilder\u003e action)\n\nAdds a singleton [ConsumerProcurementServiceClient](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient) to `services`.\n\n### AddLicenseManagementServiceClient(IServiceCollection, Action\\\u003cLicenseManagementServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddLicenseManagementServiceClient(this IServiceCollection services, Action\u003cLicenseManagementServiceClientBuilder\u003e action = null)\n\nAdds a singleton [LicenseManagementServiceClient](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.LicenseManagementServiceClient) to `services`.\n\n### AddLicenseManagementServiceClient(IServiceCollection, Action\\\u003cIServiceProvider, LicenseManagementServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddLicenseManagementServiceClient(this IServiceCollection services, Action\u003cIServiceProvider, LicenseManagementServiceClientBuilder\u003e action)\n\nAdds a singleton [LicenseManagementServiceClient](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.LicenseManagementServiceClient) to `services`."]]