回答編集履歴

1

追加

2018/10/29 13:00

投稿

kiichi54321
kiichi54321

スコア1984

test CHANGED
@@ -34,7 +34,7 @@
34
34
 
35
35
  Console.WriteLine("");
36
36
 
37
- Console.WriteLine(response.Content.ReadAsStringAsync().Result);
37
+ Console.WriteLine(await response.Content.ReadAsStringAsync());
38
38
 
39
39
  Console.WriteLine("");
40
40
 
@@ -46,9 +46,13 @@
46
46
 
47
47
  ```
48
48
 
49
- 新しいC#なら、これOK 
49
+ 新しいC#なら、Main、async が使える
50
50
 
51
51
  http://ryuichi111std.hatenablog.com/entry/2017/08/15/153804
52
+
53
+
54
+
55
+ awaitでできるものを、.Resultでやろうとすると、デッドロックが起こりうる(はず)
52
56
 
53
57
 
54
58