public Builder AddMethod <TRequest, TResponse>(
     Method <TRequest, TResponse> method,
     StreamingRequestServerMethod <TRequest, TResponse> handler)
 {
     callHandlers.Add(method.Name, ServerCalls.StreamingRequestCall(method, handler));
     return(this);
 }
Example #2
0
 public StreamingRequestServerCallHandler(Method <TRequest, TResponse> method, StreamingRequestServerMethod <TRequest, TResponse> handler)
 {
     this.method  = method;
     this.handler = handler;
 }
Example #3
0
 public static IServerCallHandler StreamingRequestCall <TRequest, TResponse>(Method <TRequest, TResponse> method, StreamingRequestServerMethod <TRequest, TResponse> handler)
 {
     return(new StreamingRequestServerCallHandler <TRequest, TResponse>(method, handler));
 }