ImageResizer
3.4.0
|
Monitors incoming image requests to determine if resizing (or other processing) is being requested. More...
Protected Member Functions | |
virtual void | CheckRequest_PostAuthorizeRequest (object sender, EventArgs e) |
This is where we filter requests and intercept those that want resizing performed. We first strip FakeExtension, then verify the remaining file extension is supported for decoding. We fire URL rewriting events. If the result includes any supported querystring params afterwards, we process the request. Otherwise we let it fall back to IIS/ASP.NET. If the file doesn't exist, we also ignore the request. They're going to cause a 404 anyway. More... | |
void | FileMissing (HttpContext httpContext, string virtualPath, NameValueCollection q) |
virtual void | HandleRequest (HttpContext context, string virtualPath, NameValueCollection queryString, IVirtualFile vf) |
Generates the resized image to disk (if needed), then rewrites the request to that location. Perform 404 checking before calling this method. Assumes file exists. Called during PostAuthorizeRequest More... | |
void | context_PreSendRequestHeaders (object sender, EventArgs e) |
We don't actually send the data - but we still want to control the headers on the data. PreSendRequestHeaders allows us to change the content-type and cache headers at excatly the last More... | |
Properties | |
IPipelineConfig | conf [get] |
Current configuration. Same as Config.Current.Pipeline More... | |
Monitors incoming image requests to determine if resizing (or other processing) is being requested.
Definition at line 26 of file InterceptModule.cs.
|
inlineprotectedvirtual |
This is where we filter requests and intercept those that want resizing performed. We first strip FakeExtension, then verify the remaining file extension is supported for decoding. We fire URL rewriting events. If the result includes any supported querystring params afterwards, we process the request. Otherwise we let it fall back to IIS/ASP.NET. If the file doesn't exist, we also ignore the request. They're going to cause a 404 anyway.
sender | |
e |
Definition at line 62 of file InterceptModule.cs.
|
inlineprotected |
We don't actually send the data - but we still want to control the headers on the data. PreSendRequestHeaders allows us to change the content-type and cache headers at excatly the last
sender | |
e |
Definition at line 312 of file InterceptModule.cs.
|
inlineprotectedvirtual |
Generates the resized image to disk (if needed), then rewrites the request to that location. Perform 404 checking before calling this method. Assumes file exists. Called during PostAuthorizeRequest
context | |
virtualPath | |
queryString | |
vf |
Definition at line 171 of file InterceptModule.cs.
Referenced by ImageResizer.InterceptModule.CheckRequest_PostAuthorizeRequest().
|
getprotected |
Current configuration. Same as Config.Current.Pipeline
Definition at line 51 of file InterceptModule.cs.
Referenced by ImageResizer.InterceptModule.CheckRequest_PostAuthorizeRequest(), and ImageResizer.InterceptModule.HandleRequest().