public async ValueTask <IResolveResult> GetRatingsAsync(ResolverContext context)
 {
     return(await GrpcClientCatch(
                "rating-service",
                async headers =>
     {
         var result = await _ratingServiceClient.GetRatingsAsync(new Empty(), headers);
         return As(result.Ratings);
     }));
 }
        public async ValueTask <IResolveResult> GetRatingsAsync(ResolverContext context)
        {
            var result = await _ratingServiceClient.GetRatingsAsync(new Empty());

            return(As(result.Ratings));
        }
Exemple #3
0
        public async Task <IActionResult> Get()
        {
            var result = await _serviceClient.GetRatingsAsync(new Empty());

            return(Ok(result));
        }