Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
ServiceStack/src/ServiceStack.Interfaces/IRestClientAsync.cs
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
33 lines (27 sloc)
1.97 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace ServiceStack | |
{ | |
public interface IRestClientAsync : IServiceClientCommon | |
{ | |
Task<TResponse> GetAsync<TResponse>(IReturn<TResponse> requestDto, CancellationToken token = default); | |
Task<TResponse> GetAsync<TResponse>(object requestDto, CancellationToken token = default); | |
Task GetAsync(IReturnVoid requestDto, CancellationToken token = default); | |
Task<TResponse> DeleteAsync<TResponse>(IReturn<TResponse> requestDto, CancellationToken token = default); | |
Task<TResponse> DeleteAsync<TResponse>(object requestDto, CancellationToken token = default); | |
Task DeleteAsync(IReturnVoid requestDto, CancellationToken token = default); | |
Task<TResponse> PostAsync<TResponse>(IReturn<TResponse> requestDto, CancellationToken token = default); | |
Task<TResponse> PostAsync<TResponse>(object requestDto, CancellationToken token = default); | |
Task PostAsync(IReturnVoid requestDto, CancellationToken token = default); | |
Task<TResponse> PutAsync<TResponse>(IReturn<TResponse> requestDto, CancellationToken token = default); | |
Task<TResponse> PutAsync<TResponse>(object requestDto, CancellationToken token = default); | |
Task PutAsync(IReturnVoid requestDto, CancellationToken token = default); | |
Task<TResponse> PatchAsync<TResponse>(IReturn<TResponse> requestDto, CancellationToken token = default); | |
Task<TResponse> PatchAsync<TResponse>(object requestDto, CancellationToken token = default); | |
Task PatchAsync(IReturnVoid requestDto, CancellationToken token = default); | |
Task<TResponse> CustomMethodAsync<TResponse>(string httpVerb, IReturn<TResponse> requestDto, CancellationToken token = default); | |
Task<TResponse> CustomMethodAsync<TResponse>(string httpVerb, object requestDto, CancellationToken token = default); | |
Task CustomMethodAsync(string httpVerb, IReturnVoid requestDto, CancellationToken token = default); | |
} | |
} |