Skip to main content

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​

ServiceStack.IServiceGateway

Parameters​
TypeName
ServiceStack.Web.IRequestrequest

GetGateway(Type)​

View Source​
Declaration
public abstract IServiceGateway GetGateway(Type requestType)
Returns​

ServiceStack.IServiceGateway

Parameters​
TypeName
System.TyperequestType

GetGatewayAsync(Type)​

View Source​
Declaration
protected virtual IServiceGatewayAsync GetGatewayAsync(Type requestType)
Returns​

ServiceStack.IServiceGatewayAsync

Parameters​
TypeName
System.TyperequestType

Send<TResponse>(Object)​

View Source​
Declaration
public TResponse Send<TResponse>(object requestDto)
Returns​

<TResponse>

Parameters​
TypeName
System.ObjectrequestDto
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​
TypeName
System.Collections.Generic.IEnumerable<System.Object>requestDtos
Type Parameters​
  • TResponse

Publish(Object)​

View Source​
Declaration
public void Publish(object requestDto)
Parameters​
TypeName
System.ObjectrequestDto

PublishAll(IEnumerable<Object>)​

View Source​
Declaration
public void PublishAll(IEnumerable<object> requestDtos)
Parameters​
TypeName
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​
TypeName
System.ObjectrequestDto
System.Threading.CancellationTokentoken
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​
TypeName
System.Collections.Generic.IEnumerable<System.Object>requestDtos
System.Threading.CancellationTokentoken
Type Parameters​
  • TResponse

PublishAsync(Object, CancellationToken)​

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

System.Threading.Tasks.Task

Parameters​
TypeName
System.ObjectrequestDto
System.Threading.CancellationTokentoken

PublishAllAsync(IEnumerable<Object>, CancellationToken)​

View Source​
Declaration
public 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

Implements​