ServiceGatewayExtensions
Assembly: ServiceStack.Client.dll
View Source
Declaration
public static class ServiceGatewayExtensions
Methods
Api<TResponse>(IServiceGateway, IReturn<TResponse>)
View Source
Declaration
public static ApiResult<TResponse> Api<TResponse>(this IServiceGateway client, IReturn<TResponse> request)
Returns
ServiceStack.ApiResult<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
ServiceStack.IReturn<T> | request |
Type Parameters
TResponse
Send<TResponse>(IServiceGateway, IReturn<TResponse>)
View Source
Declaration
public static TResponse Send<TResponse>(this IServiceGateway client, IReturn<TResponse> request)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
ServiceStack.IReturn<T> | request |
Type Parameters
TResponse
Api(IServiceGateway, IReturnVoid)
View Source
Declaration
public static ApiResult<EmptyResponse> Api(this IServiceGateway client, IReturnVoid request)
Returns
ServiceStack.ApiResult<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
ServiceStack.IReturnVoid | request |
Send(IServiceGateway, IReturnVoid)
View Source
Declaration
public static void Send(this IServiceGateway client, IReturnVoid request)
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
ServiceStack.IReturnVoid | request |
ApiAll<TResponse>(IServiceGateway, IEnumerable<IReturn<TResponse>>)
View Source
Declaration
public static ApiResult<List<TResponse>> ApiAll<TResponse>(this IServiceGateway client, IEnumerable<IReturn<TResponse>> request)
Returns
ServiceStack.ApiResult<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
System.Collections.Generic.IEnumerable<ServiceStack.IReturn<<TResponse>>> | request |
Type Parameters
TResponse
SendAll<TResponse>(IServiceGateway, IEnumerable<IReturn<TResponse>>)
View Source
Declaration
public static List<TResponse> SendAll<TResponse>(this IServiceGateway client, IEnumerable<IReturn<TResponse>> request)
Returns
System.Collections.Generic.List<<TResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
System.Collections.Generic.IEnumerable<ServiceStack.IReturn<<TResponse>>> | request |
Type Parameters
TResponse
Send(IServiceGateway, Type, Object)
View Source
Declaration
public static object Send(this IServiceGateway client, Type responseType, object request)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
System.Type | responseType |
System.Object | request |
SendAsync(IServiceGateway, Type, Object, CancellationToken)
View Source
Declaration
public static Task<object> SendAsync(this IServiceGateway client, Type responseType, object request, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
System.Type | responseType |
System.Object | request |
System.Threading.CancellationToken | token |
GetResponseType(IServiceGateway, Object)
View Source
Declaration
public static Type GetResponseType(this IServiceGateway client, object request)
Returns
System.Type
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGateway | client |
System.Object | request |