[[["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-07 UTC."],[[["\u003cp\u003eThe latest version of the Google Cloud Channel v1 API's \u003ccode\u003eServiceCollectionExtensions\u003c/code\u003e is 2.14.0, and previous versions are also available, ranging back to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eServiceCollectionExtensions\u003c/code\u003e is a static class used to provide extension methods for configuring API clients in the Google Cloud Channel v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class offers methods to add singleton instances of \u003ccode\u003eCloudChannelServiceClient\u003c/code\u003e and \u003ccode\u003eCloudChannelReportsServiceClient\u003c/code\u003e to an \u003ccode\u003eIServiceCollection\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe methods \u003ccode\u003eAddCloudChannelServiceClient\u003c/code\u003e and \u003ccode\u003eAddCloudChannelReportsServiceClient\u003c/code\u003e allow for optional actions on their respective client builders for further configuration.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddCloudChannelReportsServiceClient\u003c/code\u003e methods are labeled as obsolete.\u003c/p\u003e\n"]]],[],null,["# Cloud Channel v1 API - Class ServiceCollectionExtensions (2.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.15.0 (latest)](/dotnet/docs/reference/Google.Cloud.Channel.V1/latest/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.14.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.13.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.12.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.11.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.10.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.9.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.8.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.7.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.6.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.5.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.4.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.3.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.2.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.1.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.0.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/1.7.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/1.6.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/1.5.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/1.4.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/1.3.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/1.2.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/1.1.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/1.0.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions) \n\n public static class ServiceCollectionExtensions\n\nReference documentation and code samples for the Cloud Channel 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.Channel.V1/latest/Microsoft.Extensions.DependencyInjection)\n\nAssembly\n--------\n\nGoogle.Cloud.Channel.V1.dll\n\nMethods\n-------\n\n### AddCloudChannelReportsServiceClient(IServiceCollection, Action\\\u003cCloudChannelReportsServiceClientBuilder\\\u003e)\n\n [Obsolete]\n public static IServiceCollection AddCloudChannelReportsServiceClient(this IServiceCollection services, Action\u003cCloudChannelReportsServiceClientBuilder\u003e action = null)\n\nAdds a singleton [CloudChannelReportsServiceClient](/dotnet/docs/reference/Google.Cloud.Channel.V1/latest/Google.Cloud.Channel.V1.CloudChannelReportsServiceClient) to `services`.\n\n### AddCloudChannelReportsServiceClient(IServiceCollection, Action\\\u003cIServiceProvider, CloudChannelReportsServiceClientBuilder\\\u003e)\n\n [Obsolete]\n public static IServiceCollection AddCloudChannelReportsServiceClient(this IServiceCollection services, Action\u003cIServiceProvider, CloudChannelReportsServiceClientBuilder\u003e action)\n\nAdds a singleton [CloudChannelReportsServiceClient](/dotnet/docs/reference/Google.Cloud.Channel.V1/latest/Google.Cloud.Channel.V1.CloudChannelReportsServiceClient) to `services`.\n\n### AddCloudChannelServiceClient(IServiceCollection, Action\\\u003cCloudChannelServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddCloudChannelServiceClient(this IServiceCollection services, Action\u003cCloudChannelServiceClientBuilder\u003e action = null)\n\nAdds a singleton [CloudChannelServiceClient](/dotnet/docs/reference/Google.Cloud.Channel.V1/latest/Google.Cloud.Channel.V1.CloudChannelServiceClient) to `services`.\n\n### AddCloudChannelServiceClient(IServiceCollection, Action\\\u003cIServiceProvider, CloudChannelServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddCloudChannelServiceClient(this IServiceCollection services, Action\u003cIServiceProvider, CloudChannelServiceClientBuilder\u003e action)\n\nAdds a singleton [CloudChannelServiceClient](/dotnet/docs/reference/Google.Cloud.Channel.V1/latest/Google.Cloud.Channel.V1.CloudChannelServiceClient) to `services`."]]