Skip to main content

RpcGateway

Assembly: ServiceStack.dll
View Source
Declaration
public class RpcGateway

Methods

ExecuteAsync<TResponse>(IReturn<TResponse>, IRequest)

View Source
Declaration
public virtual Task<TResponse> ExecuteAsync<TResponse>(IReturn<TResponse> requestDto, IRequest req)
Returns

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

Parameters
TypeName
ServiceStack.IReturn<T>requestDto
ServiceStack.Web.IRequestreq
Type Parameters
  • TResponse

ExecuteAsync<TResponse>(Object, IRequest)

View Source
Declaration
public virtual async Task<TResponse> ExecuteAsync<TResponse>(object requestDto, IRequest req)
Returns

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

Parameters
TypeName
System.ObjectrequestDto
ServiceStack.Web.IRequestreq
Type Parameters
  • TResponse

GetResponse<TResponse>(IResponse, Object)

View Source
Declaration
public static TResponse GetResponse<TResponse>(IResponse res, object ret)
Returns

<TResponse>

Parameters
TypeName
ServiceStack.Web.IResponseres
System.Objectret
Type Parameters
  • TResponse

CreateErrorResponse<TResponse>(IResponse, Exception)

View Source
Declaration
public static TResponse CreateErrorResponse<TResponse>(IResponse res, Exception ex)
Returns

<TResponse>

Parameters
TypeName
ServiceStack.Web.IResponseres
System.Exceptionex
Type Parameters
  • TResponse

CreateError(IResponse, String, String)

View Source
Declaration
public static HttpError CreateError(IResponse res, string errorCode = null, string errorMessage = null)
Returns

ServiceStack.HttpError

Parameters
TypeName
ServiceStack.Web.IResponseres
System.StringerrorCode
System.StringerrorMessage