public static void TestGetTrafficStatistics(TrafficStatisticService.TrafficStatisticServiceClient client) { var request = new GetTrafficStatisticsRequest(); request.SellableInventoryList = "aeb6185e-2824-443d-9f22-238372c46898"; var response = client.GetTrafficStatistics(request); }
public override async Task <GetTrafficStatisticsResponse> GetTrafficStatistics(GetTrafficStatisticsRequest request, ServerCallContext context) { var res = await _executor.ExecuteAsync(new GetTrafficStatisticsQuery { SellableInventoryList = request.SellableInventoryList }).ConfigureAwait(false); var query = res.FirstOrDefault(); var result = query != null ? new GetTrafficStatisticsResponse { } : null; return(result); }