[[["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, which provides extension methods for configuring API clients in the Google Cloud Web Risk v1beta1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two primary methods: \u003ccode\u003eAddWebRiskServiceV1Beta1Client\u003c/code\u003e, both of which add a singleton \u003ccode\u003eWebRiskServiceV1Beta1Client\u003c/code\u003e to an \u003ccode\u003eIServiceCollection\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe methods \u003ccode\u003eAddWebRiskServiceV1Beta1Client\u003c/code\u003e offer overloads for configuring the client, including options to invoke actions on the client builder before using services.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for this class is 3.0.0-beta05, with previous versions including 3.0.0-beta04 and 2.0.0-beta05 also documented.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServiceCollectionExtensions\u003c/code\u003e class inherits from the base \u003ccode\u003eobject\u003c/code\u003e class and includes standard methods like \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, \u003ccode\u003eMemberwiseClone()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Web Risk v1beta1 API - Class ServiceCollectionExtensions (3.0.0-beta05)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0-beta05 (latest)](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.0.0-beta04](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/3.0.0-beta04/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.0.0-beta05](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/2.0.0-beta05/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions) \n\n public static class ServiceCollectionExtensions\n\nReference documentation and code samples for the Google Cloud Web Risk v1beta1 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.WebRisk.V1Beta1/latest/Microsoft.Extensions.DependencyInjection)\n\nAssembly\n--------\n\nGoogle.Cloud.WebRisk.V1Beta1.dll\n\nMethods\n-------\n\n### AddWebRiskServiceV1Beta1Client(IServiceCollection, Action\\\u003cWebRiskServiceV1Beta1ClientBuilder\\\u003e)\n\n public static IServiceCollection AddWebRiskServiceV1Beta1Client(this IServiceCollection services, Action\u003cWebRiskServiceV1Beta1ClientBuilder\u003e action = null)\n\nAdds a singleton [WebRiskServiceV1Beta1Client](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.WebRiskServiceV1Beta1Client) to `services`.\n\n### AddWebRiskServiceV1Beta1Client(IServiceCollection, Action\\\u003cIServiceProvider, WebRiskServiceV1Beta1ClientBuilder\\\u003e)\n\n public static IServiceCollection AddWebRiskServiceV1Beta1Client(this IServiceCollection services, Action\u003cIServiceProvider, WebRiskServiceV1Beta1ClientBuilder\u003e action)\n\nAdds a singleton [WebRiskServiceV1Beta1Client](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.WebRiskServiceV1Beta1Client) to `services`."]]