WeatherInformation WP8:
authorgu.martinm@gmail.com <gu.martinm@gmail.com>
Sun, 17 Aug 2014 09:09:13 +0000 (11:09 +0200)
committergu.martinm@gmail.com <gu.martinm@gmail.com>
Sun, 17 Aug 2014 09:09:13 +0000 (11:09 +0200)
Using ConfigureAwait(false) as much as possible

WindowsPhone/WeatherInformation/WeatherInformation/Model/Services/CustomHTTPClient.cs

index 28cd3e1..f93fc75 100644 (file)
@@ -54,7 +54,7 @@ namespace WeatherInformation.Model.Services
 
                     using (HttpContent contentRESULT = response.Content)
                     {
-                        return await this.ReadResponseAsync(contentRESULT);
+                        return await this.ReadResponseAsync(contentRESULT).ConfigureAwait(false);
                     }
                 }
             }
@@ -72,10 +72,10 @@ namespace WeatherInformation.Model.Services
                 encoding = Encoding.UTF8;
             }
 
-            using (Stream stream = await content.ReadAsStreamAsync())
+            using (Stream stream = await content.ReadAsStreamAsync().ConfigureAwait(false))
             using (StreamReader streamReader = new StreamReader(stream, encoding))
             {
-                return await streamReader.ReadToEndAsync();
+                return await streamReader.ReadToEndAsync().ConfigureAwait(false);
             }
         }
     }