Skip to main content

ServiceStackHandlerBase

Assembly: ServiceStack.dll
View Source
Declaration
public abstract class ServiceStackHandlerBase : HttpAsyncTaskHandler, IHttpAsyncHandler, IHttpHandler, IServiceStackHandler

Properties

HandlerAttributes

View Source
Declaration
public RequestAttributes HandlerAttributes { get; set; }

IsReusable

View Source
Declaration
public override bool IsReusable { get; }

Inherited Properties

IsReusable

View Source
Declaration
public virtual bool IsReusable { get; }

RequestName

View Source
Declaration
public string RequestName { get; set; }

Methods

UpdateResponseContentType(IRequest, Object)

View Source
Declaration
public void UpdateResponseContentType(IRequest httpReq, object response)
Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
System.Objectresponse

GetResponseAsync(IRequest, Object)

View Source
Declaration
public virtual Task<object> GetResponseAsync(IRequest httpReq, object request)
Returns

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

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
System.Objectrequest

HandleResponse(IRequest, IResponse, Object)

View Source
Declaration
public async Task HandleResponse(IRequest httpReq, IResponse httpRes, object response)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
ServiceStack.Web.IResponsehttpRes
System.Objectresponse

DeserializeHttpRequestAsync(Type, IRequest, String)

View Source
Declaration
public static Task<object> DeserializeHttpRequestAsync(Type operationType, IRequest httpReq, string contentType)
Returns

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

Parameters
TypeName
System.TypeoperationType
ServiceStack.Web.IRequesthttpReq
System.StringcontentType

CreateContentTypeRequestAsync(IRequest, Type, String)

View Source
Declaration
protected static async Task<object> CreateContentTypeRequestAsync(IRequest httpReq, Type requestType, string contentType)
Returns

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

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
System.TyperequestType
System.StringcontentType

GetCustomRequestFromBinder(IRequest, Type)

View Source
Declaration
protected static object GetCustomRequestFromBinder(IRequest httpReq, Type requestType)
Returns

System.Object

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
System.TyperequestType

GetOperationType(String)

View Source
Declaration
public static Type GetOperationType(string operationName)
Returns

System.Type

Parameters
TypeName
System.StringoperationName

ExecuteService(Object, IRequest)

View Source
Declaration
protected static object ExecuteService(object request, IRequest httpReq)
Returns

System.Object

Parameters
TypeName
System.Objectrequest
ServiceStack.Web.IRequesthttpReq

AssertOperationExists(String, Type)

View Source
Declaration
protected static void AssertOperationExists(string operationName, Type type)
Parameters
TypeName
System.StringoperationName
System.Typetype

AssertAccess(IHttpRequest, IHttpResponse, Feature, String)

View Source
Declaration
protected bool AssertAccess(IHttpRequest httpReq, IHttpResponse httpRes, Feature feature, string operationName)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Web.IHttpRequesthttpReq
ServiceStack.Web.IHttpResponsehttpRes
ServiceStack.Featurefeature
System.StringoperationName

WriteDebugResponse(IResponse, Object)

View Source
Declaration
public Task WriteDebugResponse(IResponse httpRes, object response)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IResponsehttpRes
System.Objectresponse

Inherited Methods

CreateProcessRequestTask(IRequest, IResponse, String)

View Source
Declaration
protected virtual Task CreateProcessRequestTask(IRequest httpReq, IResponse httpRes, string operationName)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
ServiceStack.Web.IResponsehttpRes
System.StringoperationName

DefaultHandledRequest(HttpListenerContext)

View Source
Declaration
protected static bool DefaultHandledRequest(HttpListenerContext context)
Returns

System.Boolean

Parameters
TypeName
System.Net.HttpListenerContextcontext

DefaultHandledRequest(HttpContextBase)

View Source
Declaration
protected static bool DefaultHandledRequest(HttpContextBase context)
Returns

System.Boolean

Parameters
TypeName
System.Web.HttpContextBasecontext

HandleException(IRequest, IResponse, String, Exception)

View Source
Declaration
protected async Task HandleException(IRequest httpReq, IResponse httpRes, string operationName, Exception ex)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
ServiceStack.Web.IResponsehttpRes
System.StringoperationName
System.Exceptionex

ProcessRequest(IRequest, IResponse, String)

View Source
Declaration
public virtual void ProcessRequest(IRequest httpReq, IResponse httpRes, string operationName)
Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
ServiceStack.Web.IResponsehttpRes
System.StringoperationName

ProcessRequestAsync(IRequest, IResponse, String)

View Source
Declaration
public virtual Task ProcessRequestAsync(IRequest httpReq, IResponse httpRes, string operationName)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
ServiceStack.Web.IResponsehttpRes
System.StringoperationName

ProcessRequestAsync(HttpContextBase)

View Source
Declaration
public virtual Task ProcessRequestAsync(HttpContextBase context)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Web.HttpContextBasecontext

RunAsAsync()

View Source
Declaration
public virtual bool RunAsAsync()
Returns

System.Boolean

IHttpAsyncHandler.BeginProcessRequest(HttpContext, AsyncCallback, Object)

View Source
Declaration
IAsyncResult IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, object extraData)
Returns

System.IAsyncResult

Parameters
TypeName
System.Web.HttpContextcontext
System.AsyncCallbackcb
System.ObjectextraData

IHttpAsyncHandler.EndProcessRequest(IAsyncResult)

View Source
Declaration
void IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
Parameters
TypeName
System.IAsyncResultresult

IHttpHandler.ProcessRequest(HttpContext)

View Source
Declaration
void IHttpHandler.ProcessRequest(HttpContext context)
Parameters
TypeName
System.Web.HttpContextcontext

Implements