Grpc.Core.ServiceBinderBase
Allows binding server-side method implementations in alternative serving stacks.
Instances of this class are usually populated by the BindService method
that is part of the autogenerated code for a protocol buffers service definition.
public ServiceBinderBase()
public virtual void AddMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, UnaryServerMethod<TRequest, TResponse> handler)
Adds a definition for a single request - single response method.
public virtual void AddMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, ClientStreamingServerMethod<TRequest, TResponse> handler)
Adds a definition for a client streaming method.
public virtual void AddMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, ServerStreamingServerMethod<TRequest, TResponse> handler)
Adds a definition for a server streaming method.
public virtual void AddMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, DuplexStreamingServerMethod<TRequest, TResponse> handler)
Adds a definition for a bidirectional streaming method.