Skip to main content

IServiceGatewayAsync

The minimal API Surface to capture the most common ASYNC requests. Convenience extensions over these core API's available in ServiceGatewayExtensions

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IServiceGatewayAsync

Methods

SendAsync<TResponse>(Object, CancellationToken)

Normal Request/Reply Services

View Source
Declaration
Task<TResponse> SendAsync<TResponse>(object requestDto, CancellationToken token = default(CancellationToken))
Returns

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

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

SendAllAsync<TResponse>(IEnumerable<Object>, CancellationToken)

Auto Batched Request/Reply Requests

View Source
Declaration
Task<List<TResponse>> SendAllAsync<TResponse>(IEnumerable<object> requestDtos, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.Collections.Generic.List<<TResponse>>>

Parameters
TypeName
System.Collections.Generic.IEnumerable<System.Object>requestDtos
System.Threading.CancellationTokentoken
Type Parameters
  • TResponse

PublishAsync(Object, CancellationToken)

OneWay Service

View Source
Declaration
Task PublishAsync(object requestDto, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.ObjectrequestDto
System.Threading.CancellationTokentoken

PublishAllAsync(IEnumerable<Object>, CancellationToken)

Auto Batched OneWay Requests

View Source
Declaration
Task PublishAllAsync(IEnumerable<object> requestDtos, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

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