ServiceGatewayAsyncWrappers
Assembly: ServiceStack.Client.dll
View Source
public static class ServiceGatewayAsyncWrappers
Methods
ApiAsync<TResponse>(IServiceGateway, IReturn<TResponse>, CancellationToken)
View Source
public static async Task<ApiResult<TResponse>> ApiAsync<TResponse>(this IServiceGateway client, IReturn<TResponse> requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.ApiResult<<TResponse>>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
ServiceStack.IReturn<T> | requestDto |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
SendAsync<TResponse>(IServiceGateway, IReturn<TResponse>, CancellationToken)
View Source
public static Task<TResponse> SendAsync<TResponse>(this IServiceGateway client, IReturn<TResponse> requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
ServiceStack.IReturn<T> | requestDto |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
ApiAsync<TResponse>(IServiceGateway, Object, CancellationToken)
View Source
public static async Task<ApiResult<TResponse>> ApiAsync<TResponse>(this IServiceGateway client, object requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.ApiResult<<TResponse>>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
System.Object | requestDto |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
SendAsync<TResponse>(IServiceGateway, Object, CancellationToken)
View Source
public static Task<TResponse> SendAsync<TResponse>(this IServiceGateway client, object requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
System.Object | requestDto |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
ApiAsync(IServiceGateway, IReturnVoid, CancellationToken)
View Source
public static async Task<ApiResult<EmptyResponse>> ApiAsync(this IServiceGateway client, IReturnVoid requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.ApiResult<ServiceStack.EmptyResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
ServiceStack.IReturnVoid | requestDto |
System.Threading.CancellationToken | token |
SendAsync(IServiceGateway, IReturnVoid, CancellationToken)
View Source
public static Task SendAsync(this IServiceGateway client, IReturnVoid requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
ServiceStack.IReturnVoid | requestDto |
System.Threading.CancellationToken | token |
ApiAllAsync<TResponse>(IServiceGateway, IEnumerable<IReturn<TResponse>>, CancellationToken)
View Source
public static async Task<ApiResult<List<TResponse>>> ApiAllAsync<TResponse>(this IServiceGateway client, IEnumerable<IReturn<TResponse>> requestDtos, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.ApiResult<System.Collections.Generic.List<<TResponse>>>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
System.Collections.Generic.IEnumerable<ServiceStack.IReturn<<TResponse>>> | requestDtos |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
SendAllAsync<TResponse>(IServiceGateway, IEnumerable<IReturn<TResponse>>, CancellationToken)
View Source
public static Task<List<TResponse>> SendAllAsync<TResponse>(this IServiceGateway client, IEnumerable<IReturn<TResponse>> requestDtos, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<<TResponse>>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
System.Collections.Generic.IEnumerable<ServiceStack.IReturn<<TResponse>>> | requestDtos |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
PublishAsync(IServiceGateway, Object, CancellationToken)
View Source
public static Task PublishAsync(this IServiceGateway client, object requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
System.Object | requestDto |
System.Threading.CancellationToken | token |
PublishAllAsync(IServiceGateway, IEnumerable<Object>, CancellationToken)
View Source
public static Task PublishAllAsync(this IServiceGateway client, IEnumerable<object> requestDtos, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
System.Collections.Generic.IEnumerable<System.Object> | requestDtos |
System.Threading.CancellationToken | token |
Api<TResponse>(IServiceClientAsync, IReturn<TResponse>, CancellationToken)
View Source
public static async Task<ApiResult<TResponse>> Api<TResponse>(this IServiceClientAsync client, IReturn<TResponse> requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.ApiResult<<TResponse>>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClientAsync | client |
ServiceStack.IReturn<T> | requestDto |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
Send<TResponse>(IServiceClientAsync, IReturn<TResponse>, CancellationToken)
View Source
public static Task<TResponse> Send<TResponse>(this IServiceClientAsync client, IReturn<TResponse> requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClientAsync | client |
ServiceStack.IReturn<T> | requestDto |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
ApiAllAsync<TResponse>(IServiceClientAsync, IReturn<TResponse>[], CancellationToken)
View Source
public static async Task<ApiResult<List<TResponse>>> ApiAllAsync<TResponse>(this IServiceClientAsync client, IReturn<TResponse>[] requestDtos, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.ApiResult<System.Collections.Generic.List<<TResponse>>>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClientAsync | client |
ServiceStack.IReturn<<TResponse>>[] | requestDtos |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
SendAllAsync<TResponse>(IServiceClientAsync, IReturn<TResponse>[], CancellationToken)
View Source
public static Task<List<TResponse>> SendAllAsync<TResponse>(this IServiceClientAsync client, IReturn<TResponse>[] requestDtos, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<<TResponse>>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClientAsync | client |
ServiceStack.IReturn<<TResponse>>[] | requestDtos |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
ApiAllAsync<TResponse>(IServiceClientAsync, List<IReturn<TResponse>>, CancellationToken)
View Source
public static async Task<ApiResult<List<TResponse>>> ApiAllAsync<TResponse>(this IServiceClientAsync client, List<IReturn<TResponse>> requestDtos, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.ApiResult<System.Collections.Generic.List<<TResponse>>>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClientAsync | client |
System.Collections.Generic.List<ServiceStack.IReturn<<TResponse>>> | requestDtos |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
SendAllAsync<TResponse>(IServiceClientAsync, List<IReturn<TResponse>>, CancellationToken)
View Source
public static Task<List<TResponse>> SendAllAsync<TResponse>(this IServiceClientAsync client, List<IReturn<TResponse>> requestDtos, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<<TResponse>>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClientAsync | client |
System.Collections.Generic.List<ServiceStack.IReturn<<TResponse>>> | requestDtos |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
PublishAllAsync(IServiceGatewayAsync, IEnumerable<IReturnVoid>, CancellationToken)
View Source
public static Task PublishAllAsync(this IServiceGatewayAsync client, IEnumerable<IReturnVoid> requestDtos, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGatewayAsync | client |
System.Collections.Generic.IEnumerable<ServiceStack.IReturnVoid> | requestDtos |
System.Threading.CancellationToken | token |