ServiceGatewayFactoryBase
Assembly: ServiceStack.dll
View Source
Declaration
public abstract class ServiceGatewayFactoryBase : IServiceGatewayFactory, IServiceGateway, IServiceGatewayAsync
Properties
Request
View Source
Declaration
public IRequest Request { get; }
Fields
localGateway
View Source
Declaration
protected InProcessServiceGateway localGateway
Methods
GetServiceGateway(IRequest)
View Source
Declaration
public virtual IServiceGateway GetServiceGateway(IRequest request)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | request |
GetGateway(Type)
View Source
Declaration
public abstract IServiceGateway GetGateway(Type requestType)
Returns
Parameters
Type | Name |
---|---|
System.Type | requestType |
GetGatewayAsync(Type)
View Source
Declaration
protected virtual IServiceGatewayAsync GetGatewayAsync(Type requestType)
Returns
ServiceStack.IServiceGatewayAsync
Parameters
Type | Name |
---|---|
System.Type | requestType |
Send<TResponse>(Object)
View Source
Declaration
public TResponse Send<TResponse>(object requestDto)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
System.Object | requestDto |
Type Parameters
TResponse
SendAll<TResponse>(IEnumerable<Object>)
View Source
Declaration
public List<TResponse> SendAll<TResponse>(IEnumerable<object> requestDtos)
Returns
System.Collections.Generic.List<<TResponse>>
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | requestDtos |
Type Parameters
TResponse
Publish(Object)
View Source
Declaration
public void Publish(object requestDto)
Parameters
Type | Name |
---|---|
System.Object | requestDto |
PublishAll(IEnumerable<Object>)
View Source
Declaration
public void PublishAll(IEnumerable<object> requestDtos)
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | requestDtos |
SendAsync<TResponse>(Object, CancellationToken)
View Source
Declaration
public 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)
View Source
Declaration
public 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)
View Source
Declaration
public 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)
View Source
Declaration
public 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 |