BaseMetadataHandler
Assembly: ServiceStack.dll
View Source
Declaration
public abstract class BaseMetadataHandler : HttpAsyncTaskHandler, IHttpAsyncHandler, IHttpHandler, IServiceStackHandler
Properties
Format
View Source
Declaration
public abstract Format Format { get; }
ContentType
View Source
Declaration
public string ContentType { get; set; }
ContentFormat
View Source
Declaration
public string ContentFormat { get; set; }
Inherited Properties
IsReusable
View Source
Declaration
public virtual bool IsReusable { get; }
RequestName
View Source
Declaration
public string RequestName { get; set; }
Methods
ProcessRequestAsync(IRequest, IResponse, String)
View Source
Declaration
public override async Task ProcessRequestAsync(IRequest httpReq, IResponse httpRes, string operationName)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Web.IResponse | httpRes |
System.String | operationName |
CreateResponse(Type)
View Source
Declaration
public virtual string CreateResponse(Type type)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Type | type |
ProcessOperationsAsync(Stream, IRequest, IResponse)
View Source
Declaration
protected virtual async Task ProcessOperationsAsync(Stream writer, IRequest httpReq, IResponse httpRes)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.IO.Stream | writer |
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Web.IResponse | httpRes |
RenderOperationsAsync(Stream, IRequest, ServiceMetadata)
View Source
Declaration
protected virtual async Task RenderOperationsAsync(Stream output, IRequest httpReq, ServiceMetadata metadata)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.IO.Stream | output |
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Host.ServiceMetadata | metadata |
AssertAccess(IRequest, IResponse, String)
View Source
Declaration
protected bool AssertAccess(IRequest httpReq, IResponse httpRes, string operationName)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Web.IResponse | httpRes |
System.String | operationName |
CreateMessage(Type)
View Source
Declaration
protected abstract string CreateMessage(Type dtoType)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Type | dtoType |
RenderOperationAsync(Stream, IRequest, String, String, String, String, Operation)
View Source
Declaration
protected virtual Task RenderOperationAsync(Stream output, IRequest httpReq, string operationName, string requestMessage, string responseMessage, string metadataHtml, Operation operation)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.IO.Stream | output |
ServiceStack.Web.IRequest | httpReq |
System.String | operationName |
System.String | requestMessage |
System.String | responseMessage |
System.String | metadataHtml |
ServiceStack.Host.Operation | operation |
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
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Web.IResponse | httpRes |
System.String | operationName |
DefaultHandledRequest(HttpListenerContext)
View Source
Declaration
protected static bool DefaultHandledRequest(HttpListenerContext context)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Net.HttpListenerContext | context |
DefaultHandledRequest(HttpContextBase)
View Source
Declaration
protected static bool DefaultHandledRequest(HttpContextBase context)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Web.HttpContextBase | context |
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
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Web.IResponse | httpRes |
System.String | operationName |
System.Exception | ex |
ProcessRequest(IRequest, IResponse, String)
View Source
Declaration
public virtual void ProcessRequest(IRequest httpReq, IResponse httpRes, string operationName)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Web.IResponse | httpRes |
System.String | operationName |
ProcessRequestAsync(IRequest, IResponse, String)
View Source
Declaration
public virtual Task ProcessRequestAsync(IRequest httpReq, IResponse httpRes, string operationName)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Web.IResponse | httpRes |
System.String | operationName |
ProcessRequestAsync(HttpContextBase)
View Source
Declaration
public virtual Task ProcessRequestAsync(HttpContextBase context)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Web.HttpContextBase | context |
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
Type | Name |
---|---|
System.Web.HttpContext | context |
System.AsyncCallback | cb |
System.Object | extraData |
IHttpAsyncHandler.EndProcessRequest(IAsyncResult)
View Source
Declaration
void IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
Parameters
Type | Name |
---|---|
System.IAsyncResult | result |
IHttpHandler.ProcessRequest(HttpContext)
View Source
Declaration
void IHttpHandler.ProcessRequest(HttpContext context)
Parameters
Type | Name |
---|---|
System.Web.HttpContext | context |
Implements
System.Web.IHttpAsyncHandler
System.Web.IHttpHandler
- ServiceStack.Host.Handlers.IServiceStackHandler