Beispiel #1
0
        public async Task <int> GetRecommendedDatacenterIdAsync()
        {
            var res = await _endpointService.SendRequest(EndpointPath);

            var datacentersPage = JsonSerializer.Deserialize <DatacentersRequestResult>(res, Settings.JsonSerializerOptions);

            return(datacentersPage.Recommendation);
        }