ImageResizer
3.4.0
|
Specialized VirtualPathProvider that allows accessing database images as if they are on disk. More...
Public Member Functions | |
SqlReaderPlugin (NameValueCollection args) | |
SqlReaderPlugin (SqlReaderSettings s) | |
IPlugin | Install (Configuration.Config c) |
Installes the plugin into the specified configuration. Once installed, it cannot be uninstalled. More... | |
bool | Uninstall (Configuration.Config c) |
This plugin cannot be uninstalled as ASP.NET does not provide a 'undo' function for RegisterVirtualPathProvider More... | |
virtual void | FireAuthorizeEvent (string id) |
Called before any database op. Fires the BeforeAccess event More... | |
Stream | GetStream (string id) |
Returns a stream to the More... | |
SqlParameter | CreateIdParameter (string id) |
Creates a SQL paramater of the correct type for the row id More... | |
bool | RowExists (string id) |
Executes existsQuery, and returns true if the value is greater than 0 More... | |
DateTime | GetDateModifiedUtc (string id) |
Returns DateTime.MinValue if there are no rows, or no values on the row. Executes ModifiedDateQuery, then returns the first non-null datetime value on the first row. More... | |
SqlConnection | GetConnectionObj () |
Creates and returns a SqlConnection object for the database based on the configuration. More... | |
SqlCommand | GetCacheDependencyQuery (string id) |
Returns a SqlCommand cache dependency using the modifiedQuery. More... | |
virtual string | ParseIdFromVirtualPath (string virtualPath) |
Supports int, string, and GUID IDs. Override this to modify ID parsing if you can't do it with rewrite rules. More... | |
override bool | FileExists (string virtualPath) |
VPP method - not for external use More... | |
override VirtualFile | GetFile (string virtualPath) |
VPP method, not for external use More... | |
bool | FileExists (string virtualPath, NameValueCollection queryString) |
Returns true if the specified virtual file should be provided by this reader and it exists. False if this provider cannot/should not provide it, or it doesn't exist. More... | |
IVirtualFile | GetFile (string virtualPath, NameValueCollection queryString) |
Returns an IVirtualFile instance if the file exists in this provider. More... | |
override CacheDependency | GetCacheDependency (string virtualPath, System.Collections.IEnumerable virtualPathDependencies, DateTime utcStart) |
VPP method, not for external use More... | |
IEnumerable< IIssue > | GetIssues () |
Provides the diagnostics system with a list of configuration issues More... | |
Configuration.Xml.Node | RedactFrom (Node resizer) |
Public Member Functions inherited from ImageResizer.Plugins.IPlugin | |
IPlugin | Install (Config c) |
Installs the plugin in the specified Config instance. The plugin must handle all the work of loading settings, registering the plugin etc. More... | |
bool | Uninstall (Config c) |
Uninstalls the plugin. Should reverse all changes made during Install More... | |
Protected Member Functions | |
override void | Initialize () |
No initialization needed for this VPP More... | |
Properties | |
SqlReaderSettings | Settings [get] |
Provides all the configuration options for the plugin. More... | |
bool | FailedToRegisterVpp [get] |
True if the provider attempted to register itself as a VirtualPathProvider and failed due to limited security clearance. False if it did not attempt, or if it succeeded. More... | |
bool | IsStringKey [get] |
Returns true if Settings.ImageIdType is a string type More... | |
bool | IsIntKey [get] |
Returns true if Settings.ImageIdType is an integer type More... | |
Specialized VirtualPathProvider that allows accessing database images as if they are on disk.
Definition at line 21 of file SqlReader.cs.
|
inline |
Creates a SQL paramater of the correct type for the row id
id |
Definition at line 138 of file SqlReader.cs.
|
inline |
VPP method - not for external use
virtualPath |
Definition at line 333 of file SqlReader.cs.
|
inline |
Returns true if the specified virtual file should be provided by this reader and it exists. False if this provider cannot/should not provide it, or it doesn't exist.
virtualPath | |
queryString |
Implements ImageResizer.Plugins.IVirtualImageProvider.
Definition at line 362 of file SqlReader.cs.
|
inlinevirtual |
Called before any database op. Fires the BeforeAccess event
id |
Definition at line 105 of file SqlReader.cs.
|
inline |
VPP method, not for external use
virtualPath | |
virtualPathDependencies | |
utcStart |
Definition at line 383 of file SqlReader.cs.
|
inline |
Returns a SqlCommand cache dependency using the modifiedQuery.
id |
Definition at line 254 of file SqlReader.cs.
|
inline |
Creates and returns a SqlConnection object for the database based on the configuration.
Definition at line 227 of file SqlReader.cs.
|
inline |
Returns DateTime.MinValue if there are no rows, or no values on the row. Executes ModifiedDateQuery, then returns the first non-null datetime value on the first row.
id |
Definition at line 195 of file SqlReader.cs.
|
inline |
VPP method, not for external use
virtualPath |
Definition at line 348 of file SqlReader.cs.
|
inline |
Returns an IVirtualFile instance if the file exists in this provider.
virtualPath | |
queryString |
Implements ImageResizer.Plugins.IVirtualImageProvider.
Definition at line 372 of file SqlReader.cs.
|
inline |
Provides the diagnostics system with a list of configuration issues
Implements ImageResizer.Configuration.Issues.IIssueProvider.
Definition at line 398 of file SqlReader.cs.
|
inline |
Returns a stream to the
id |
Definition at line 113 of file SqlReader.cs.
|
inlineprotected |
|
inline |
Installes the plugin into the specified configuration. Once installed, it cannot be uninstalled.
c |
Definition at line 53 of file SqlReader.cs.
|
inlinevirtual |
Supports int, string, and GUID IDs. Override this to modify ID parsing if you can't do it with rewrite rules.
virtualPath |
Definition at line 273 of file SqlReader.cs.
|
inline |
Executes existsQuery, and returns true if the value is greater than 0
id |
Definition at line 174 of file SqlReader.cs.
|
inline |
This plugin cannot be uninstalled as ASP.NET does not provide a 'undo' function for RegisterVirtualPathProvider
c |
Definition at line 96 of file SqlReader.cs.
|
get |
True if the provider attempted to register itself as a VirtualPathProvider and failed due to limited security clearance. False if it did not attempt, or if it succeeded.
Definition at line 44 of file SqlReader.cs.
|
get |
Returns true if Settings.ImageIdType is an integer type
Definition at line 162 of file SqlReader.cs.
|
get |
Returns true if Settings.ImageIdType is a string type
Definition at line 154 of file SqlReader.cs.
|
get |
Provides all the configuration options for the plugin.
Definition at line 36 of file SqlReader.cs.