[[["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-09-04 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eServiceCollectionExtensions\u003c/code\u003e class within the Google Cloud Talent Solution v4 API, specifically for .NET development.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServiceCollectionExtensions\u003c/code\u003e class is a static class offering methods to configure API clients and is located in the \u003ccode\u003eMicrosoft.Extensions.DependencyInjection\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThis class includes methods to add singleton service clients to an \u003ccode\u003eIServiceCollection\u003c/code\u003e, including \u003ccode\u003eCompanyServiceClient\u003c/code\u003e, \u003ccode\u003eCompletionClient\u003c/code\u003e, \u003ccode\u003eEventServiceClient\u003c/code\u003e, \u003ccode\u003eJobServiceClient\u003c/code\u003e, and \u003ccode\u003eTenantServiceClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the API available, with version 2.7.0 being the latest, and the documentation includes links to all versions from 1.0.0 up to the latest version 2.7.0.\u003c/p\u003e\n"],["\u003cp\u003eEach method to add a singleton service client includes parameters to allow for the configuration of the client, and an optional action to invoke on the client builder.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Talent Solution v4 API - Class ServiceCollectionExtensions (2.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/2.6.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/2.5.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/2.4.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/2.3.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/2.2.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/2.1.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/2.0.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/1.4.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/1.3.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/1.2.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/1.1.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/1.0.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions) \n\n public static class ServiceCollectionExtensions\n\nReference documentation and code samples for the Google Cloud Talent Solution v4 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.Talent.V4/latest/Microsoft.Extensions.DependencyInjection)\n\nAssembly\n--------\n\nGoogle.Cloud.Talent.V4.dll\n\nMethods\n-------\n\n### AddCompanyServiceClient(IServiceCollection, Action\\\u003cCompanyServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddCompanyServiceClient(this IServiceCollection services, Action\u003cCompanyServiceClientBuilder\u003e action = null)\n\nAdds a singleton [CompanyServiceClient](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.CompanyServiceClient) to `services`.\n\n### AddCompanyServiceClient(IServiceCollection, Action\\\u003cIServiceProvider, CompanyServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddCompanyServiceClient(this IServiceCollection services, Action\u003cIServiceProvider, CompanyServiceClientBuilder\u003e action)\n\nAdds a singleton [CompanyServiceClient](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.CompanyServiceClient) to `services`.\n\n### AddCompletionClient(IServiceCollection, Action\\\u003cCompletionClientBuilder\\\u003e)\n\n public static IServiceCollection AddCompletionClient(this IServiceCollection services, Action\u003cCompletionClientBuilder\u003e action = null)\n\nAdds a singleton [CompletionClient](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.CompletionClient) to `services`.\n\n### AddCompletionClient(IServiceCollection, Action\\\u003cIServiceProvider, CompletionClientBuilder\\\u003e)\n\n public static IServiceCollection AddCompletionClient(this IServiceCollection services, Action\u003cIServiceProvider, CompletionClientBuilder\u003e action)\n\nAdds a singleton [CompletionClient](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.CompletionClient) to `services`.\n\n### AddEventServiceClient(IServiceCollection, Action\\\u003cEventServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddEventServiceClient(this IServiceCollection services, Action\u003cEventServiceClientBuilder\u003e action = null)\n\nAdds a singleton [EventServiceClient](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.EventServiceClient) to `services`.\n\n### AddEventServiceClient(IServiceCollection, Action\\\u003cIServiceProvider, EventServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddEventServiceClient(this IServiceCollection services, Action\u003cIServiceProvider, EventServiceClientBuilder\u003e action)\n\nAdds a singleton [EventServiceClient](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.EventServiceClient) to `services`.\n\n### AddJobServiceClient(IServiceCollection, Action\\\u003cJobServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddJobServiceClient(this IServiceCollection services, Action\u003cJobServiceClientBuilder\u003e action = null)\n\nAdds a singleton [JobServiceClient](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.JobServiceClient) to `services`.\n\n### AddJobServiceClient(IServiceCollection, Action\\\u003cIServiceProvider, JobServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddJobServiceClient(this IServiceCollection services, Action\u003cIServiceProvider, JobServiceClientBuilder\u003e action)\n\nAdds a singleton [JobServiceClient](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.JobServiceClient) to `services`.\n\n### AddTenantServiceClient(IServiceCollection, Action\\\u003cTenantServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddTenantServiceClient(this IServiceCollection services, Action\u003cTenantServiceClientBuilder\u003e action = null)\n\nAdds a singleton [TenantServiceClient](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.TenantServiceClient) to `services`.\n\n### AddTenantServiceClient(IServiceCollection, Action\\\u003cIServiceProvider, TenantServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddTenantServiceClient(this IServiceCollection services, Action\u003cIServiceProvider, TenantServiceClientBuilder\u003e action)\n\nAdds a singleton [TenantServiceClient](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.TenantServiceClient) to `services`."]]