[[["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 documentation covers the \u003ccode\u003eServiceCollectionExtensions\u003c/code\u003e static class within the Google Cloud Scheduler v1 API for .NET, which provides methods to configure API clients.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version documented is 3.5.0, with previous versions from 3.4.0 down to 2.2.0 also available in this reference.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServiceCollectionExtensions\u003c/code\u003e class offers methods to add a singleton \u003ccode\u003eCloudSchedulerClient\u003c/code\u003e to an \u003ccode\u003eIServiceCollection\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddCloudSchedulerClient\u003c/code\u003e method allows optional actions to be performed on a \u003ccode\u003eCloudSchedulerClientBuilder\u003c/code\u003e before services from the \u003ccode\u003eIServiceCollection\u003c/code\u003e are used.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation includes the details of the \u003ccode\u003eAddCloudSchedulerClient\u003c/code\u003e method's parameters, such as \u003ccode\u003eservices\u003c/code\u003e and \u003ccode\u003eaction\u003c/code\u003e, along with their respective descriptions.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Scheduler v1 API - Class ServiceCollectionExtensions (3.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/3.4.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/3.3.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/3.2.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/3.1.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/3.0.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/2.3.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/2.2.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions) \n\n public static class ServiceCollectionExtensions\n\nReference documentation and code samples for the Google Cloud Scheduler 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.Scheduler.V1/latest/Microsoft.Extensions.DependencyInjection)\n\nAssembly\n--------\n\nGoogle.Cloud.Scheduler.V1.dll\n\nMethods\n-------\n\n### AddCloudSchedulerClient(IServiceCollection, Action\\\u003cCloudSchedulerClientBuilder\\\u003e)\n\n public static IServiceCollection AddCloudSchedulerClient(this IServiceCollection services, Action\u003cCloudSchedulerClientBuilder\u003e action = null)\n\nAdds a singleton [CloudSchedulerClient](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.CloudSchedulerClient) to `services`.\n\n### AddCloudSchedulerClient(IServiceCollection, Action\\\u003cIServiceProvider, CloudSchedulerClientBuilder\\\u003e)\n\n public static IServiceCollection AddCloudSchedulerClient(this IServiceCollection services, Action\u003cIServiceProvider, CloudSchedulerClientBuilder\u003e action)\n\nAdds a singleton [CloudSchedulerClient](/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.CloudSchedulerClient) to `services`."]]