C# Class Rainy.CustomHandler.EmbeddedResourceHandler

Serves static files that are embedded as a resource into an assembly.
Inheritance: IHttpHandler, IServiceStackHttpHandler, IHttpHandlerDecider
Show file Open project: Dynalon/Rainy Class Usage Examples

Public Methods

Method Description
CheckAndProcess ( IHttpRequest request ) : IHttpHandler
EmbeddedResourceHandler ( string route_path, Assembly resource_assembly, string resource_path ) : System

Initializes a new instance of the Rainy.CustomHandler.EmbeddedResourceHandler class.

ProcessRequest ( HttpContext context ) : void
ProcessRequest ( IHttpRequest request, IHttpResponse response, string operationName ) : void

Protected Methods

Method Description
ReadInEmbeddedResource ( string filename ) : string

Method Details

CheckAndProcess() public method

public CheckAndProcess ( IHttpRequest request ) : IHttpHandler
request IHttpRequest
return IHttpHandler

EmbeddedResourceHandler() public method

Initializes a new instance of the Rainy.CustomHandler.EmbeddedResourceHandler class.
public EmbeddedResourceHandler ( string route_path, Assembly resource_assembly, string resource_path ) : System
route_path string The virtual path the client requested url is matched against
resource_assembly System.Reflection.Assembly The assembly which holds the embedded resource
resource_path string Path to the embedded resource within the assembly (using dots as seperator)
return System

ProcessRequest() public method

public ProcessRequest ( HttpContext context ) : void
context System.Web.HttpContext
return void

ProcessRequest() public method

public ProcessRequest ( IHttpRequest request, IHttpResponse response, string operationName ) : void
request IHttpRequest
response IHttpResponse
operationName string
return void

ReadInEmbeddedResource() protected method

protected ReadInEmbeddedResource ( string filename ) : string
filename string
return string