public Task <RpcResult <FooRes> > FooAsync(FooReq req) { RpcResult <FooRes> result = new RpcResult <FooRes> { Data = new FooRes { RetWord = req.FooWord } }; return(Task.FromResult(result)); }
public Task <RpcResult <FooRes> > FooAsync(FooReq req) { RpcResult <FooRes> result = new RpcResult <FooRes> { Data = new FooRes { RetWord = req.FooWord } }; //throw new Exception("测试异常"); return(Task.FromResult(result)); }