Type VirtualFolder
Namespace ImageResizer.Plugins.Basic
Parent VirtualPathProvider
Interfaces IVirtualImageProvider, IPlugin, IMultiInstancePlugin, IIssueProvider
Functions exactly like an IIS virtual folder, but doesn't require IIS configuration.
Methods
- CombineVirtualPaths
- CreateObjRef
- DirectoryExists
- FileExists
- GetCacheDependency
- GetCacheKey
- GetDateModifiedUtc
- GetDirectory
- GetFile
- GetFileHash
- GetLifetimeService
- InitializeLifetimeService
- IsVirtualPath
- LocalMapPath
- VirtualToPhysical
Properties
Public instance methods
string CombineVirtualPaths(string basePath, string relativePath)
ObjRef CreateObjRef(Type requestedType)
bool DirectoryExists(string virtualDir)
bool FileExists(string virtualPath)
For internal use only by the.NET VPP system.
CacheDependency GetCacheDependency(string virtualPath, IEnumerable virtualPathDependencies, DateTime utcStart)
For internal use only by the.NET VPP system.
string GetCacheKey(string virtualPath)
DateTime GetDateModifiedUtc(string virtualPath)
Returns the LastWriteTimeUtc value for the specified virtual file in this folder, or DateTime.MinValue if missing.
VirtualDirectory GetDirectory(string virtualDir)
VirtualFile GetFile(string virtualPath)
For internal use only by the.NET VPP system.
string GetFileHash(string virtualPath, IEnumerable virtualPathDependencies)
object GetLifetimeService()
object InitializeLifetimeService()
bool IsVirtualPath(string virtualPath)
Returns true if the specified path is inside this virtual folder
string LocalMapPath(string virtualPath)
Converts any virtual path in this folder to a physical path. Returns null if the virtual path is outside the folder.
string VirtualToPhysical(string virtualPath)
Public properties
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 (say, due to missing IOPermission) , or if it succeeded.
bool NoIOPermission get;
True if the plugin has detected it doesn't have sufficient IOPermission to operate.
string PhysicalPath get; set;
The physical path
bool RegisterAsVpp get; set;
If true, the plugin will attempt to register itself as an application-wide VirtualPathProvider instead of a image resizer-specific IVirtualImageProvider.
string VirtualPath get; set;
The virtual path served by the VirtualFolder