public UnaryResult <MyStructResponse> Unary5(MyStructRequest req) { return(UnaryResult(new MyStructResponse { X = req.X, Y = req.Y })); }
public UnaryResult <MyStructResponse> Unary5(MyStructRequest req) { throw new NotImplementedException(); }
public Task <ServerStreamingResult <MyStructResponse> > ServerStreamingResult5(MyStructRequest req) { throw new NotImplementedException(); }
public async Task <ServerStreamingResult <MyStructResponse> > ServerStreamingResult5(MyStructRequest req) { var stream = GetServerStreamingContext <MyStructResponse>(); await stream.WriteAsync(new MyStructResponse { X = req.X, Y = req.Y }); return(stream.Result()); }