C# Class Bombsquad.DynamicMedia.DynamicMediaHandlerBase

Inheritance: IHttpHandler
Show file Open project: bmbsqd/dynamic-media

Public Methods

Method Description
ProcessRequest ( HttpContext context ) : void
ServeInvalidMethod ( HttpResponse response ) : void

Protected Methods

Method Description
DynamicMediaHandlerBase ( ) : System
ServeIllegalExtensionResult ( System.Web.HttpResponseBase response ) : void
ServeNotFoundResult ( System.Web.HttpResponseBase response ) : void

Private Methods

Method Description
GetOriginalPath ( System.Web.HttpRequestBase request, IMediaTransformer mediaTransformer ) : string
GetRequestPath ( System.Web.HttpRequestBase request ) : string
HandleGetRequest ( HttpContext context, IResult>.Func resultWrapper ) : void
ServeOriginal ( string path, IStorageFile storageFile, IFormatInfo outputFormat ) : IResult
TransformMedia ( Stream original, IFormatInfo outputFormat, string path, IMediaTransformer mediaTransformer ) : IResult
TryGetResult ( System.Web.HttpRequestBase request, IFormatInfo outputFormat, bool transformMedia, IMediaTransformer mediaTransformer, IResult &result ) : bool

Method Details

DynamicMediaHandlerBase() protected method

protected DynamicMediaHandlerBase ( ) : System
return System

ProcessRequest() public method

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

ServeIllegalExtensionResult() protected method

protected ServeIllegalExtensionResult ( System.Web.HttpResponseBase response ) : void
response System.Web.HttpResponseBase
return void

ServeInvalidMethod() public method

public ServeInvalidMethod ( HttpResponse response ) : void
response System.Web.HttpResponse
return void

ServeNotFoundResult() protected method

protected ServeNotFoundResult ( System.Web.HttpResponseBase response ) : void
response System.Web.HttpResponseBase
return void