InProcessServiceGateway
Assembly: ServiceStack.dll
View Source
Declaration
public class InProcessServiceGateway : IServiceGateway, IServiceGatewayAsync, IRequiresRequest
Properties
Request
View Source
Declaration
public IRequest Request { get; set; }
ConvertibleTypes
View Source
Declaration
public static Type[] ConvertibleTypes { get; set; }
Fields
Log
View Source
Declaration
protected static ILog Log
Methods
SetVerb(Object)
View Source
Declaration
protected string SetVerb(object requestDto)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Object | requestDto |
ResetVerb(String)
View Source
Declaration
protected void ResetVerb(string verb)
Parameters
Type | Name |
---|---|
System.String | verb |
InitRequest(Object)
View Source
Declaration
protected virtual void InitRequest(object request)
Parameters
Type | Name |
---|---|
System.Object | request |
ExecSync<TResponse>(Object)
View Source
Declaration
protected virtual TResponse ExecSync<TResponse>(object request)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
System.Object | request |
Type Parameters
TResponse
ExecAsync<TResponse>(Object)
View Source
Declaration
protected virtual async Task<TResponse> ExecAsync<TResponse>(object request)
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
System.Object | request |
Type Parameters
TResponse
ExecValidatorsAsync(Object)
View Source
Declaration
protected virtual Task ExecValidatorsAsync(object request)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Object | request |
UnwrapResponse(Object)
View Source
Declaration
public virtual object UnwrapResponse(object response)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | response |
UnwrapResponseAsync(Object)
View Source
Declaration
public virtual async Task<object> UnwrapResponseAsync(object response)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
Type | Name |
---|---|
System.Object | response |
ConvertToResponseAsync<TResponse>(Object)
View Source
Declaration
public virtual async Task<TResponse> ConvertToResponseAsync<TResponse>(object response)
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
System.Object | response |
Type Parameters
TResponse
ConvertToResponse<TResponse>(Object)
View Source
Declaration
public virtual TResponse ConvertToResponse<TResponse>(object response)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
System.Object | response |
Type Parameters
TResponse
Send<TResponse>(Object)
View Source
Declaration
public virtual TResponse Send<TResponse>(object requestDto)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
System.Object | requestDto |
Type Parameters
TResponse
SendAsync<TResponse>(Object, CancellationToken)
View Source
Declaration
public virtual async 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
CreateTypedArray(IEnumerable<Object>)
View Source
Declaration
protected static object[] CreateTypedArray(IEnumerable<object> requestDtos)
Returns
System.Object[]
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | requestDtos |
SendAll<TResponse>(IEnumerable<Object>)
View Source
Declaration
public virtual 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
SendAllAsync<TResponse>(IEnumerable<Object>, CancellationToken)
View Source
Declaration
public virtual async 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
Publish(Object)
View Source
Declaration
public virtual void Publish(object request)
Parameters
Type | Name |
---|---|
System.Object | request |
PublishAsync(Object, CancellationToken)
View Source
Declaration
public virtual async Task PublishAsync(object request, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Object | request |
System.Threading.CancellationToken | token |
PublishAll(IEnumerable<Object>)
View Source
Declaration
public virtual void PublishAll(IEnumerable<object> requestDtos)
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | requestDtos |
PublishAllAsync(IEnumerable<Object>, CancellationToken)
View Source
Declaration
public virtual async 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 |