forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIRestClientAsync.cs
More file actions
32 lines (24 loc) · 1.28 KB
/
IRestClientAsync.cs
File metadata and controls
32 lines (24 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Threading.Tasks;
namespace ServiceStack
{
public interface IRestClientAsync : IDisposable
{
void SetCredentials(string userName, string password);
Task<TResponse> GetAsync<TResponse>(IReturn<TResponse> requestDto);
Task<TResponse> GetAsync<TResponse>(object requestDto);
Task<TResponse> GetAsync<TResponse>(string relativeOrAbsoluteUrl);
Task<TResponse> DeleteAsync<TResponse>(IReturn<TResponse> requestDto);
Task<TResponse> DeleteAsync<TResponse>(object requestDto);
Task<TResponse> DeleteAsync<TResponse>(string relativeOrAbsoluteUrl);
Task<TResponse> PostAsync<TResponse>(IReturn<TResponse> requestDto);
Task<TResponse> PostAsync<TResponse>(object requestDto);
Task<TResponse> PostAsync<TResponse>(string relativeOrAbsoluteUrl, object request);
Task<TResponse> PutAsync<TResponse>(IReturn<TResponse> requestDto);
Task<TResponse> PutAsync<TResponse>(object requestDto);
Task<TResponse> PutAsync<TResponse>(string relativeOrAbsoluteUrl, object request);
Task<TResponse> CustomMethodAsync<TResponse>(string httpVerb, IReturn<TResponse> requestDto);
Task<TResponse> CustomMethodAsync<TResponse>(string httpVerb, object requestDto);
void CancelAsync();
}
}