Example #1
0
        private IServerCallHandler CreateServerCallHandler(bool isView = false)
        {
            var method  = CreateMethod(isView);
            var handler = CreateHandler();

            return(ServerCalls.UnaryCall(method, handler));
        }
Example #2
0
        public ServerCallHandlerTests()
        {
            var method  = CreateMethod();
            var handler = CreateHandler();

            _callHandler = ServerCalls.UnaryCall(method, handler);
        }
Example #3
0
 public override void AddMethod <TRequest, TResponse>(
     Method <TRequest, TResponse> method,
     UnaryServerMethod <TRequest, TResponse> handler)
 {
     callHandlers.Add(method.Name, ServerCalls.UnaryCall(method, handler));
 }