Пример #1
0
        public override Task <TResponse> UnaryServerHandler <TRequest, TResponse>(TRequest request, ServerCallContext context, UnaryServerMethod <TRequest, TResponse> continuation)
        {
            var opId = listener.ServerRequest(request);

            var result = continuation(request, context);

            listener.ServerResponse(opId.ToString(), "OK");//cath error
            return(result);
        }