Skip to main content

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
TypeName
System.ObjectrequestDto

ResetVerb(String)

View Source
Declaration
protected void ResetVerb(string verb)
Parameters
TypeName
System.Stringverb

InitRequest(Object)

View Source
Declaration
protected virtual void InitRequest(object request)
Parameters
TypeName
System.Objectrequest

ExecSync<TResponse>(Object)

View Source
Declaration
protected virtual TResponse ExecSync<TResponse>(object request)
Returns

<TResponse>

Parameters
TypeName
System.Objectrequest
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
TypeName
System.Objectrequest
Type Parameters
  • TResponse

ExecValidatorsAsync(Object)

View Source
Declaration
protected virtual Task ExecValidatorsAsync(object request)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Objectrequest

UnwrapResponse(Object)

View Source
Declaration
public virtual object UnwrapResponse(object response)
Returns

System.Object

Parameters
TypeName
System.Objectresponse

UnwrapResponseAsync(Object)

View Source
Declaration
public virtual async Task<object> UnwrapResponseAsync(object response)
Returns

System.Threading.Tasks.Task<System.Object>

Parameters
TypeName
System.Objectresponse

ConvertToResponseAsync<TResponse>(Object)

View Source
Declaration
public virtual async Task<TResponse> ConvertToResponseAsync<TResponse>(object response)
Returns

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

Parameters
TypeName
System.Objectresponse
Type Parameters
  • TResponse

ConvertToResponse<TResponse>(Object)

View Source
Declaration
public virtual TResponse ConvertToResponse<TResponse>(object response)
Returns

<TResponse>

Parameters
TypeName
System.Objectresponse
Type Parameters
  • TResponse

Send<TResponse>(Object)

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

<TResponse>

Parameters
TypeName
System.ObjectrequestDto
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
TypeName
System.ObjectrequestDto
System.Threading.CancellationTokentoken
Type Parameters
  • TResponse

CreateTypedArray(IEnumerable<Object>)

View Source
Declaration
protected static object[] CreateTypedArray(IEnumerable<object> requestDtos)
Returns

System.Object[]

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

Publish(Object)

View Source
Declaration
public virtual void Publish(object request)
Parameters
TypeName
System.Objectrequest

PublishAsync(Object, CancellationToken)

View Source
Declaration
public virtual async Task PublishAsync(object request, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Objectrequest
System.Threading.CancellationTokentoken

PublishAll(IEnumerable<Object>)

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

Implements