Ejemplo n.º 1
0
 public Builder AddMethod <TRequest, TResponse>(Method <TRequest, TResponse> method, UnaryServerMethod <TRequest, TResponse> handler)
     where TRequest : class
     where TResponse : class
 {
     callHandlers.Add(method.FullName, ServerCalls.UnaryCall(method, handler));
     return(this);
 }
Ejemplo n.º 2
0
 public Builder AddMethod <TRequest, TResponse>(
     Method <TRequest, TResponse> method,
     StreamingRequestServerMethod <TRequest, TResponse> handler)
 {
     callHandlers.Add(method.Name, ServerCalls.StreamingRequestCall(method, handler));
     return(this);
 }
Ejemplo n.º 3
0
 public Builder AddMethod <TRequest, TResponse>(
     Method <TRequest, TResponse> method,
     UnaryRequestServerMethod <TRequest, TResponse> handler)
 {
     callHandlers.Add(GetFullMethodName(serviceName, method.Name), ServerCalls.UnaryRequestCall(method, handler));
     return(this);
 }
Ejemplo n.º 4
0
 public Builder AddMethod <TRequest, TResponse>(
     Method <TRequest, TResponse> method,
     ServerStreamingServerMethod <TRequest, TResponse> handler)
     where TRequest : class
     where TResponse : class
 {
     callHandlers.Add(GetFullMethodName(serviceName, method.Name), ServerCalls.ServerStreamingCall(method, handler));
     return(this);
 }