public class ServiceBinderBaseAllows 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.
Namespace
Grpc.CoreAssembly
Grpc.Core.Api.dll
Methods
AddMethod<TRequest, TResponse>(Method<TRequest, TResponse>, ClientStreamingServerMethod<TRequest, TResponse>?)
public virtual void AddMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, ClientStreamingServerMethod<TRequest, TResponse>? handler) where TRequest : class where TResponse : classAdds a definition for a client streaming method.
| Parameters | |
|---|---|
| Name | Description |
method |
MethodThe method. |
handler |
ClientStreamingServerMethodThe method handler. |
| Type Parameters | |
|---|---|
| Name | Description |
TRequest |
The request message class. |
TResponse |
The response message class. |
AddMethod<TRequest, TResponse>(Method<TRequest, TResponse>, DuplexStreamingServerMethod<TRequest, TResponse>?)
public virtual void AddMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, DuplexStreamingServerMethod<TRequest, TResponse>? handler) where TRequest : class where TResponse : classAdds a definition for a bidirectional streaming method.
| Parameters | |
|---|---|
| Name | Description |
method |
MethodThe method. |
handler |
DuplexStreamingServerMethodThe method handler. |
| Type Parameters | |
|---|---|
| Name | Description |
TRequest |
The request message class. |
TResponse |
The response message class. |
AddMethod<TRequest, TResponse>(Method<TRequest, TResponse>, ServerStreamingServerMethod<TRequest, TResponse>?)
public virtual void AddMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, ServerStreamingServerMethod<TRequest, TResponse>? handler) where TRequest : class where TResponse : classAdds a definition for a server streaming method.
| Parameters | |
|---|---|
| Name | Description |
method |
MethodThe method. |
handler |
ServerStreamingServerMethodThe method handler. |
| Type Parameters | |
|---|---|
| Name | Description |
TRequest |
The request message class. |
TResponse |
The response message class. |
AddMethod<TRequest, TResponse>(Method<TRequest, TResponse>, UnaryServerMethod<TRequest, TResponse>?)
public virtual void AddMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, UnaryServerMethod<TRequest, TResponse>? handler) where TRequest : class where TResponse : classAdds a definition for a single request - single response method.
| Parameters | |
|---|---|
| Name | Description |
method |
MethodThe method. |
handler |
UnaryServerMethodThe method handler. |
| Type Parameters | |
|---|---|
| Name | Description |
TRequest |
The request message class. |
TResponse |
The response message class. |