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()
97
97
var response = await client .PostAsync <MyResponse >(request , cancellationToken );
98
98
```
99
99
100
- All the synchronous methods are gone. If you absolutely must call without using ` async ` and ` await ` , use ` GetAwaiter().GetResult() ` blocking call.
101
-
102
100
The ` IRestResponse ` interface is deprecated. You get an instance of ` RestResponse ` or ` RestResponse<T> ` in return.
103
101
104
102
You can also use a simplified API for making POST and PUT requests:
@@ -166,7 +164,7 @@ public class GitHubClient {
166
164
}
167
165
168
166
public Task <GitHubRepo []> GetRepos ()
169
- => _client .GetAsync <GitHubRepo []>(" users/aspnet/repos" );
167
+ => _client .GetJsonAsync <GitHubRepo []>(" users/aspnet/repos" );
170
168
}
171
169
```
172
170
You can’t perform that action at this time.
0 commit comments