Esempio n. 1
0
        public async Task MakeRequestAsync(string url, int?httpStatusCodeOverride = null)
        {
            var fullUrl = httpStatusCodeOverride == null ? url : $"{url}?statuscode={httpStatusCodeOverride}";

            System.Console.WriteLine($"Calling {fullUrl}");

            var response = await client.MakeRequestAsync(fullUrl);

            logContext.AddLogEntry(response).Wait();
        }