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
Type | Name |
---|---|
ServiceStack.IReturn<T> | requestDto |
ServiceStack.Web.IRequest | req |
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
Type | Name |
---|---|
System.Object | requestDto |
ServiceStack.Web.IRequest | req |
Type Parameters
TResponse
GetResponse<TResponse>(IResponse, Object)
View Source
Declaration
public static TResponse GetResponse<TResponse>(IResponse res, object ret)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.Web.IResponse | res |
System.Object | ret |
Type Parameters
TResponse
CreateErrorResponse<TResponse>(IResponse, Exception)
View Source
Declaration
public static TResponse CreateErrorResponse<TResponse>(IResponse res, Exception ex)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.Web.IResponse | res |
System.Exception | ex |
Type Parameters
TResponse
CreateError(IResponse, String, String)
View Source
Declaration
public static HttpError CreateError(IResponse res, string errorCode = null, string errorMessage = null)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Web.IResponse | res |
System.String | errorCode |
System.String | errorMessage |