Skip to main content

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
TypeName
ServiceStack.IServiceGatewayclient
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
TypeName
ServiceStack.IServiceGatewayclient
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
TypeName
ServiceStack.IServiceGatewayclient
ServiceStack.IReturnVoidrequest

Send(IServiceGateway, IReturnVoid)

View Source
Declaration
public static void Send(this IServiceGateway client, IReturnVoid request)
Parameters
TypeName
ServiceStack.IServiceGatewayclient
ServiceStack.IReturnVoidrequest

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
TypeName
ServiceStack.IServiceGatewayclient
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
TypeName
ServiceStack.IServiceGatewayclient
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
TypeName
ServiceStack.IServiceGatewayclient
System.TyperesponseType
System.Objectrequest

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
TypeName
ServiceStack.IServiceGatewayclient
System.TyperesponseType
System.Objectrequest
System.Threading.CancellationTokentoken

GetResponseType(IServiceGateway, Object)

View Source
Declaration
public static Type GetResponseType(this IServiceGateway client, object request)
Returns

System.Type

Parameters
TypeName
ServiceStack.IServiceGatewayclient
System.Objectrequest