Skip to main content

ServiceGatewayAsyncWrappers

Assembly: ServiceStack.Client.dll
View Source
Declaration
public static class ServiceGatewayAsyncWrappers

Methods

ApiAsync<TResponse>(IServiceGateway, IReturn<TResponse>, CancellationToken)

View Source
Declaration
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
TypeName
ServiceStack.IServiceGatewayclient
ServiceStack.IReturn<T>requestDto
System.Threading.CancellationTokentoken
Type Parameters
  • TResponse

SendAsync<TResponse>(IServiceGateway, IReturn<TResponse>, CancellationToken)

View Source
Declaration
public static Task<TResponse> SendAsync<TResponse>(this IServiceGateway client, IReturn<TResponse> requestDto, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<<TResponse>>

Parameters
TypeName
ServiceStack.IServiceGatewayclient
ServiceStack.IReturn<T>requestDto
System.Threading.CancellationTokentoken
Type Parameters
  • TResponse

ApiAsync<TResponse>(IServiceGateway, Object, CancellationToken)

View Source
Declaration
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
TypeName
ServiceStack.IServiceGatewayclient
System.ObjectrequestDto
System.Threading.CancellationTokentoken
Type Parameters
  • TResponse

SendAsync<TResponse>(IServiceGateway, Object, CancellationToken)

View Source
Declaration
public static Task<TResponse> SendAsync<TResponse>(this IServiceGateway client, object requestDto, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<<TResponse>>

Parameters
TypeName
ServiceStack.IServiceGatewayclient
System.ObjectrequestDto
System.Threading.CancellationTokentoken
Type Parameters
  • TResponse

ApiAsync(IServiceGateway, IReturnVoid, CancellationToken)

View Source
Declaration
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
TypeName
ServiceStack.IServiceGatewayclient
ServiceStack.IReturnVoidrequestDto
System.Threading.CancellationTokentoken

SendAsync(IServiceGateway, IReturnVoid, CancellationToken)

View Source
Declaration
public static Task SendAsync(this IServiceGateway client, IReturnVoid requestDto, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.IServiceGatewayclient
ServiceStack.IReturnVoidrequestDto
System.Threading.CancellationTokentoken

ApiAllAsync<TResponse>(IServiceGateway, IEnumerable<IReturn<TResponse>>, CancellationToken)

View Source
Declaration
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
TypeName
ServiceStack.IServiceGatewayclient
System.Collections.Generic.IEnumerable<ServiceStack.IReturn<<TResponse>>>requestDtos
System.Threading.CancellationTokentoken
Type Parameters
  • TResponse

SendAllAsync<TResponse>(IServiceGateway, IEnumerable<IReturn<TResponse>>, CancellationToken)

View Source
Declaration
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
TypeName
ServiceStack.IServiceGatewayclient
System.Collections.Generic.IEnumerable<ServiceStack.IReturn<<TResponse>>>requestDtos
System.Threading.CancellationTokentoken
Type Parameters
  • TResponse

PublishAsync(IServiceGateway, Object, CancellationToken)

View Source
Declaration
public static Task PublishAsync(this IServiceGateway client, object requestDto, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.IServiceGatewayclient
System.ObjectrequestDto
System.Threading.CancellationTokentoken

PublishAllAsync(IServiceGateway, IEnumerable<Object>, CancellationToken)

View Source
Declaration
public static Task PublishAllAsync(this IServiceGateway client, IEnumerable<object> requestDtos, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.IServiceGatewayclient
System.Collections.Generic.IEnumerable<System.Object>requestDtos
System.Threading.CancellationTokentoken

Api<TResponse>(IServiceClientAsync, IReturn<TResponse>, CancellationToken)

View Source
Declaration
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
TypeName
ServiceStack.IServiceClientAsyncclient
ServiceStack.IReturn<T>requestDto
System.Threading.CancellationTokentoken
Type Parameters
  • TResponse

Send<TResponse>(IServiceClientAsync, IReturn<TResponse>, CancellationToken)

View Source
Declaration
public static Task<TResponse> Send<TResponse>(this IServiceClientAsync client, IReturn<TResponse> requestDto, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<<TResponse>>

Parameters
TypeName
ServiceStack.IServiceClientAsyncclient
ServiceStack.IReturn<T>requestDto
System.Threading.CancellationTokentoken
Type Parameters
  • TResponse

ApiAllAsync<TResponse>(IServiceClientAsync, IReturn<TResponse>[], CancellationToken)

View Source
Declaration
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
TypeName
ServiceStack.IServiceClientAsyncclient
ServiceStack.IReturn<<TResponse>>[]requestDtos
System.Threading.CancellationTokentoken
Type Parameters
  • TResponse

SendAllAsync<TResponse>(IServiceClientAsync, IReturn<TResponse>[], CancellationToken)

View Source
Declaration
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
TypeName
ServiceStack.IServiceClientAsyncclient
ServiceStack.IReturn<<TResponse>>[]requestDtos
System.Threading.CancellationTokentoken
Type Parameters
  • TResponse

ApiAllAsync<TResponse>(IServiceClientAsync, List<IReturn<TResponse>>, CancellationToken)

View Source
Declaration
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
TypeName
ServiceStack.IServiceClientAsyncclient
System.Collections.Generic.List<ServiceStack.IReturn<<TResponse>>>requestDtos
System.Threading.CancellationTokentoken
Type Parameters
  • TResponse

SendAllAsync<TResponse>(IServiceClientAsync, List<IReturn<TResponse>>, CancellationToken)

View Source
Declaration
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
TypeName
ServiceStack.IServiceClientAsyncclient
System.Collections.Generic.List<ServiceStack.IReturn<<TResponse>>>requestDtos
System.Threading.CancellationTokentoken
Type Parameters
  • TResponse

PublishAllAsync(IServiceGatewayAsync, IEnumerable<IReturnVoid>, CancellationToken)

View Source
Declaration
public static Task PublishAllAsync(this IServiceGatewayAsync client, IEnumerable<IReturnVoid> requestDtos, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.IServiceGatewayAsyncclient
System.Collections.Generic.IEnumerable<ServiceStack.IReturnVoid>requestDtos
System.Threading.CancellationTokentoken