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
Type | Name |
---|---|
System.Object | requestDto |
System.Threading.CancellationToken | token |
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
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | requestDtos |
System.Threading.CancellationToken | token |
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
Type | Name |
---|---|
System.Object | requestDto |
System.Threading.CancellationToken | token |
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
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | requestDtos |
System.Threading.CancellationToken | token |