[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]public class BindServiceMethodAttribute:Attribute
Specifies the location of the service bind method for a gRPC service.
The bind method is typically generated code and is used to register a service's
methods with the server on startup.
The bind method signature takes a ServiceBinderBase and an optional
instance of the service base class, e.g. static void BindService(ServiceBinderBase, GreeterService).
[[["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\u003e\u003ccode\u003eBindServiceMethodAttribute\u003c/code\u003e specifies the location of a gRPC service's bind method, which is used to register the service's methods with the server during startup.\u003c/p\u003e\n"],["\u003cp\u003eThe bind method signature takes a \u003ccode\u003eServiceBinderBase\u003c/code\u003e and an optional instance of the service base class, and is typically generated code.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBindServiceMethodAttribute\u003c/code\u003e class inherits from the \u003ccode\u003eAttribute\u003c/code\u003e class and ultimately the \u003ccode\u003eobject\u003c/code\u003e class in the .NET framework.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, \u003ccode\u003eBindServiceMethodAttribute(Type, string)\u003c/code\u003e, that initializes a new instance of the class taking a type and a method name.\u003c/p\u003e\n"],["\u003cp\u003eIt has two properties \u003ccode\u003eBindMethodName\u003c/code\u003e which gets the name of the bind method and \u003ccode\u003eBindType\u003c/code\u003e which gets the type the service method is defined on.\u003c/p\u003e\n"]]],[],null,[]]