File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,6 @@ var request = new RestRequest()
9797var response = await client .PostAsync <MyResponse >(request , cancellationToken );
9898```
9999
100- All the synchronous methods are gone. If you absolutely must call without using ` async ` and ` await ` , use ` GetAwaiter().GetResult() ` blocking call.
101-
102100The ` IRestResponse ` interface is deprecated. You get an instance of ` RestResponse ` or ` RestResponse<T> ` in return.
103101
104102You can also use a simplified API for making POST and PUT requests:
@@ -166,7 +164,7 @@ public class GitHubClient {
166164 }
167165
168166 public Task <GitHubRepo []> GetRepos ()
169- => _client .GetAsync <GitHubRepo []>(" users/aspnet/repos" );
167+ => _client .GetJsonAsync <GitHubRepo []>(" users/aspnet/repos" );
170168}
171169```
172170
You can’t perform that action at this time.
0 commit comments