示例#1
0
 public override void AddMethod <TRequest, TResponse>(
     Method <TRequest, TResponse> method,
     DuplexStreamingServerMethod <TRequest, TResponse> handler)
 {
     callHandlers.Add(method.FullName, ServerCalls.DuplexStreamingCall(method, handler));
 }
示例#2
0
 public override void AddMethod <TRequest, TResponse>(
     Method <TRequest, TResponse> method,
     UnaryServerMethod <TRequest, TResponse> handler)
 {
     callHandlers.Add(method.FullName, ServerCalls.UnaryCall(method, handler));
 }