コード例 #1
0
 public UnaryResult <MyStructResponse> Unary5(MyStructRequest req)
 {
     return(UnaryResult(new MyStructResponse
     {
         X = req.X,
         Y = req.Y
     }));
 }
コード例 #2
0
 public UnaryResult <MyStructResponse> Unary5(MyStructRequest req)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
 public Task <ServerStreamingResult <MyStructResponse> > ServerStreamingResult5(MyStructRequest req)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
        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());
        }