ImageResizer
3.4.0
|
An ImageResizer Plugin that retrieves images from a MongoDB/GridFS store More...
Classes | |
class | MongoVirtualFile |
Represents a file stored in GridFS and the requested resize settings More... | |
Public Member Functions | |
MongoReaderPlugin (string prefix, MongoDatabase db, MongoGridFSSettings gridSettings) | |
Create a MongoReaderPlugin with an existing MongoDatabase and specific settings for GridFS More... | |
MongoReaderPlugin (NameValueCollection args) | |
Create a MongoReaderPlugin from plug-in arguments More... | |
IPlugin | Install (Config c) |
Install the MongoReader plugin More... | |
bool | Uninstall (Config c) |
Uninstall the MongoReader plugin More... | |
Node | RedactFrom (Node resizer) |
Removes connection string attributes for security More... | |
bool | FileExists (string virtualPath, NameValueCollection queryString) |
Checks if the virtual path has the same root as our virtual filesystem prefix More... | |
IVirtualFile | GetFile (string virtualPath, NameValueCollection queryString) |
Returns a MongoVirtual file matching the path, or null if the path doesn't fall in this virtual root. More... | |
Properties | |
MongoGridFS | GridFS [get] |
A reference to the GridFS instance used to retrieve files. More... | |
string | VirtualFilesystemPrefix [get, set] |
Requests starting with this path will be handled by this virtual path provider. Should be in app-relative form: "~/gridfs/". Will be converted to root-relative form upon assigment. Trailing slash required, auto-added. More... | |
An ImageResizer Plugin that retrieves images from a MongoDB/GridFS store
Definition at line 20 of file MongoReaderPlugin.cs.
|
inline |
Create a MongoReaderPlugin with an existing MongoDatabase and specific settings for GridFS
prefix | The virtual folder representing GridFS assets |
db | An existing MongoDatabase instance |
gridSettings | Settings for the GridFS connection |
Definition at line 36 of file MongoReaderPlugin.cs.
|
inline |
Create a MongoReaderPlugin from plug-in arguments
args |
Definition at line 48 of file MongoReaderPlugin.cs.
|
inline |
Checks if the virtual path has the same root as our virtual filesystem prefix
virtualPath | |
queryString |
Implements ImageResizer.Plugins.IVirtualImageProvider.
Definition at line 125 of file MongoReaderPlugin.cs.
|
inline |
Returns a MongoVirtual file matching the path, or null if the path doesn't fall in this virtual root.
virtualPath | |
queryString |
Implements ImageResizer.Plugins.IVirtualImageProvider.
Definition at line 137 of file MongoReaderPlugin.cs.
Install the MongoReader plugin
c |
Implements ImageResizer.Plugins.IPlugin.
Definition at line 88 of file MongoReaderPlugin.cs.
Removes connection string attributes for security
resizer |
Implements ImageResizer.Plugins.IRedactDiagnostics.
Definition at line 110 of file MongoReaderPlugin.cs.
|
inline |
Uninstall the MongoReader plugin
c |
Implements ImageResizer.Plugins.IPlugin.
Definition at line 99 of file MongoReaderPlugin.cs.
|
get |
A reference to the GridFS instance used to retrieve files.
Definition at line 66 of file MongoReaderPlugin.cs.
|
getset |
Requests starting with this path will be handled by this virtual path provider. Should be in app-relative form: "~/gridfs/". Will be converted to root-relative form upon assigment. Trailing slash required, auto-added.
Definition at line 74 of file MongoReaderPlugin.cs.
Referenced by ImageResizer.Plugins.MongoReader.MongoReaderPlugin.MongoVirtualFile.MongoVirtualFile().