ImageResizer
3.4.0
|
Public Member Functions | |
bool | IsAcceptedImageType (string filePath) |
True if the specified extension is one that the pipeline can handle More... | |
bool | HasPipelineDirective (NameValueCollection q) |
True if the querystring contains any directives that are understood by the pipeline More... | |
string | TrimFakeExtensions (string path) |
Removes the first fake extension detected at the end of 'path' (like image.jpg.ashx -> image.jpg). More... | |
ImageBuilder | GetImageBuilder () |
Returns an ImageBuilder instance to use for image processing. More... | |
ICacheProvider | GetCacheProvider () |
Returns a ICacheProvider instance that provides caching system selection and creation. More... | |
new IVirtualFile | GetFile (string virtualPath, NameValueCollection queryString) |
new bool | FileExists (string virtualPath, NameValueCollection queryString) |
Returns true if (a) A registered IVirtualImageProvider says it exists, or (b) if the VirtualPathProvider chain says it exists. More... | |
void | FirePostAuthorizeRequest (IHttpModule sender, System.Web.HttpContext httpContext) |
void | FireRewritingEvents (IHttpModule sender, System.Web.HttpContext context, IUrlEventArgs ue) |
void | FireAuthorizeImage (IHttpModule sender, System.Web.HttpContext context, IUrlAuthorizationEventArgs urlEventArgs) |
void | FirePreHandleImage (IHttpModule sender, System.Web.HttpContext context, IResponseArgs e) |
void | FireImageMissing (IHttpModule sender, System.Web.HttpContext context, IUrlEventArgs urlEventArgs) |
Properties | |
string | ModifiedQueryStringKey [get] |
The key in Context.Items to store the modified querystring (i.e, post-rewrite). Allows VirtualPathProviders to access the rewritten data. More... | |
string | ResponseArgsKey [get] |
The key in Context.Items to store the IResponseArgs object More... | |
string | StopRoutingKey [get] |
The key in Context.Items to set if we want to cancel MVC routing for the request More... | |
string | ModifiedPathKey [get] |
The key in Context.Items to access a the path to use instead of Request.path More... | |
VppUsageOption | VppUsage [get] |
The behavior to use when accessing the file system. More... | |
string | SkipFileTypeCheckKey [get] |
bool | SkipFileTypeCheck [get] |
Get or sets whether the file extension check should be applied to the current request. Defaults to true. If set to true, will only affect the current request, and will only cause the Resizer to evaluate the rewriting rules on the request. Processing may still not occur if no querystring values are specified. Add 'cache=always' to force caching to occur. More... | |
bool | ModuleInstalled [get, set] |
True once the InterceptModule has been installed. More... | |
string | PreRewritePath [get] |
Returns the value of Context.Items["resizer.newPath"] if present. If not, returns FilePath + PathInfo. Sets Context.Items["resizer.newPath"]. Only useful during the Pipeline.PostAuthorizeRequestStart event. More... | |
NameValueCollection | ModifiedQueryString [get, set] |
Definition at line 25 of file IPipelineConfig.cs.
new bool ImageResizer.Configuration.IPipelineConfig.FileExists | ( | string | virtualPath, |
NameValueCollection | queryString | ||
) |
Returns true if (a) A registered IVirtualImageProvider says it exists, or (b) if the VirtualPathProvider chain says it exists.
virtualPath | |
queryString |
Implements ImageResizer.Plugins.IVirtualImageProvider.
Implemented in ImageResizer.Configuration.PipelineConfig.
ICacheProvider ImageResizer.Configuration.IPipelineConfig.GetCacheProvider | ( | ) |
Returns a ICacheProvider instance that provides caching system selection and creation.
Implemented in ImageResizer.Configuration.PipelineConfig.
new IVirtualFile ImageResizer.Configuration.IPipelineConfig.GetFile | ( | string | virtualPath, |
NameValueCollection | queryString | ||
) |
Returns an IVirtualFile instance if the specified file exists.
virtualPath | |
queryString |
Implements ImageResizer.Plugins.IVirtualImageProvider.
Implemented in ImageResizer.Configuration.PipelineConfig.
Referenced by ImageResizer.InterceptModule.CheckRequest_PostAuthorizeRequest().
ImageBuilder ImageResizer.Configuration.IPipelineConfig.GetImageBuilder | ( | ) |
Returns an ImageBuilder instance to use for image processing.
Implemented in ImageResizer.Configuration.PipelineConfig.
bool ImageResizer.Configuration.IPipelineConfig.HasPipelineDirective | ( | NameValueCollection | q | ) |
True if the querystring contains any directives that are understood by the pipeline
q |
Referenced by ImageResizer.InterceptModule.CheckRequest_PostAuthorizeRequest(), and ImageResizer.InterceptModule.HandleRequest().
bool ImageResizer.Configuration.IPipelineConfig.IsAcceptedImageType | ( | string | filePath | ) |
True if the specified extension is one that the pipeline can handle
filePath |
Implemented in ImageResizer.Configuration.PipelineConfig.
Referenced by ImageResizer.InterceptModule.CheckRequest_PostAuthorizeRequest(), and ImageResizer.InterceptModule.HandleRequest().
string ImageResizer.Configuration.IPipelineConfig.TrimFakeExtensions | ( | string | path | ) |
Removes the first fake extension detected at the end of 'path' (like image.jpg.ashx -> image.jpg).
path |
Implemented in ImageResizer.Configuration.PipelineConfig.
|
get |
The key in Context.Items to access a the path to use instead of Request.path
Definition at line 58 of file IPipelineConfig.cs.
|
get |
The key in Context.Items to store the modified querystring (i.e, post-rewrite). Allows VirtualPathProviders to access the rewritten data.
Definition at line 43 of file IPipelineConfig.cs.
|
getset |
True once the InterceptModule has been installed.
Definition at line 75 of file IPipelineConfig.cs.
|
get |
Returns the value of Context.Items["resizer.newPath"] if present. If not, returns FilePath + PathInfo. Sets Context.Items["resizer.newPath"]. Only useful during the Pipeline.PostAuthorizeRequestStart event.
Definition at line 82 of file IPipelineConfig.cs.
|
get |
The key in Context.Items to store the IResponseArgs object
Definition at line 48 of file IPipelineConfig.cs.
|
get |
Get or sets whether the file extension check should be applied to the current request. Defaults to true. If set to true, will only affect the current request, and will only cause the Resizer to evaluate the rewriting rules on the request. Processing may still not occur if no querystring values are specified. Add 'cache=always' to force caching to occur.
Definition at line 70 of file IPipelineConfig.cs.
Referenced by ImageResizer.InterceptModule.CheckRequest_PostAuthorizeRequest().
|
get |
The key in Context.Items to set if we want to cancel MVC routing for the request
Definition at line 53 of file IPipelineConfig.cs.
|
get |
The behavior to use when accessing the file system.
Definition at line 62 of file IPipelineConfig.cs.