public static void BindService(ServiceBinderBase serviceBinder, DepService.DepServiceBase serviceImpl)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eDepService is a class within the Network Services v1 API, handling resources and extending from the base object class.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides two versions of the \u003ccode\u003eBindService\u003c/code\u003e method, one that creates a server service definition and another to register service methods with a service binder.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBindService\u003c/code\u003e methods accept an implementation object (\u003ccode\u003eDepServiceBase\u003c/code\u003e) to manage server-side handling logic.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this \u003ccode\u003eDepService\u003c/code\u003e is \u003ccode\u003e1.0.0\u003c/code\u003e, and there is a beta version available \u003ccode\u003e1.0.0-beta01\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBindService(DepServiceBase)\u003c/code\u003e method returns a \u003ccode\u003eServerServiceDefinition\u003c/code\u003e, while the \u003ccode\u003eBindService(ServiceBinderBase, DepServiceBase)\u003c/code\u003e method is an experimental API that registers service method with a \u003ccode\u003eServiceBinderBase\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Network Services v1 API - Class DepService (1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.DepService)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/1.2.0/Google.Cloud.NetworkServices.V1.DepService)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/1.1.0/Google.Cloud.NetworkServices.V1.DepService)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/1.0.0/Google.Cloud.NetworkServices.V1.DepService) \n\n public static class DepService\n\nReference documentation and code samples for the Network Services v1 API class DepService.\n\nService describing handlers for resources. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DepService \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[Google.Cloud.NetworkServices.V1](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.NetworkServices.V1.dll\n\nMethods\n-------\n\n### BindService(DepServiceBase)\n\n public static ServerServiceDefinition BindService(DepService.DepServiceBase serviceImpl)\n\nCreates service definition that can be registered with a server\n\n### BindService(ServiceBinderBase, DepServiceBase)\n\n public static void BindService(ServiceBinderBase serviceBinder, DepService.DepServiceBase serviceImpl)\n\nRegister service method with a service binder with or without implementation. Useful when customizing the service binding logic.\nNote: this method is part of an experimental API that can change or be removed without any prior notice."]]