strictfp pastebin

Paste #80628, submitted October 3, 2017, 4:22 am
Paste Again | Create new paste

public async Task<List<Person>> GetAvailablePersons()
		{
			var startTime = DateTime.Now;
			using (var client = PrepareClient())
			{

				var response = await client.GetAsync("http://10.23.2.54/Blog/api/Person/Get");
				var responseString = await response.Content.ReadAsStringAsync();

				var persons = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Person>>(responseString);

				var endTime = DateTime.Now;

				var diff = (endTime - startTime).TotalMilliseconds;

				Debug.WriteLine(string.Format("Elapsed {0}", diff));
				return persons;
			}
		}