Allows binding server-side method implementations in alternative serving stacks.
Instances of this class are usually populated by theBindServicemethod
that is part of the autogenerated code for a protocol buffers service definition.
public virtual void AddMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, ClientStreamingServerMethod<TRequest, TResponse>? handler) where TRequest : class where TResponse : class
public virtual void AddMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, DuplexStreamingServerMethod<TRequest, TResponse>? handler) where TRequest : class where TResponse : class
Adds a definition for a bidirectional streaming method.
public virtual void AddMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, ServerStreamingServerMethod<TRequest, TResponse>? handler) where TRequest : class where TResponse : class
public virtual void AddMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, UnaryServerMethod<TRequest, TResponse>? handler) where TRequest : class where TResponse : class
Adds a definition for a single request - single response method.
[[["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\u003e\u003ccode\u003eServiceBinderBase\u003c/code\u003e facilitates the binding of server-side method implementations in alternative serving stacks, primarily utilized by the \u003ccode\u003eBindService\u003c/code\u003e method found in autogenerated code.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from the \u003ccode\u003eobject\u003c/code\u003e class and includes standard inherited members such as \u003ccode\u003eEquals\u003c/code\u003e, \u003ccode\u003eGetHashCode\u003c/code\u003e, and \u003ccode\u003eGetType\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe primary function of the \u003ccode\u003eServiceBinderBase\u003c/code\u003e class is the ability to add various method definitions, namely client streaming, bidirectional streaming, server streaming, and single request-single response methods.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddMethod\u003c/code\u003e function, allows for the addition of server methods, using generics \u003ccode\u003eTRequest\u003c/code\u003e and \u003ccode\u003eTResponse\u003c/code\u003e to define the message classes and the \u003ccode\u003emethod\u003c/code\u003e and \u003ccode\u003ehandler\u003c/code\u003e to handle them.\u003c/p\u003e\n"],["\u003cp\u003eThis class is located within the \u003ccode\u003eGrpc.Core\u003c/code\u003e namespace and is part of the \u003ccode\u003eGrpc.Core.Api.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]