메소드 | 설명 | |
---|---|---|
Add ( |
||
Add ( |
Add a namespace mapping for embedded resources.
|
|
EmbeddedFileProvider ( ) : System | ||
EmbeddedFileProvider ( string siteRoot ) : System |
Initializes a new instance of the EmbeddedFileProvider class.
|
|
FileExists ( string virtualPath ) : bool |
Checks if a file exits
|
|
GetCacheDependency ( string virtualPath, IEnumerable dependencies, System.DateTime utcStart ) : System.Web.Caching.CacheDependency |
Creates a cache dependency based on the specified virtual paths
|
|
GetCacheKey ( string virtualPath ) : string |
|
|
GetFile ( string virtualPath ) : System.Web.Hosting.VirtualFile |
Get the view
|
|
GetFileHash ( string virtualPath, IEnumerable dependencies ) : string |
Get file hash.
|
메소드 | 설명 | |
---|---|---|
IsFileAllowed ( string resourceName ) : bool |
Determines if the found embedded file might be mapped and provided. Default implementation uses AllowedFileExtensions to determine which files to servce. |
|
LoadStream ( string virtualPath, MappedResource resource ) : Stream |
Resource to load The default implementation uses |
|
Map ( |
Create mappings for all resources in a specific namespace (and all sub namespaces).
|
메소드 | 설명 | |
---|---|---|
GetResource ( string uri ) : MappedResource |
Get resource name by scanning all mapped namespaces.
|
public Add ( |
||
mapping | Mapping to add | |
리턴 | void |
public EmbeddedFileProvider ( string siteRoot ) : System | ||
siteRoot | string | Root directory of the web site |
리턴 | System |
public FileExists ( string virtualPath ) : bool | ||
virtualPath | string | Virtual path like "~/Views/Home/Index.cshtml" |
리턴 | bool |
public GetCacheDependency ( string virtualPath, IEnumerable dependencies, System.DateTime utcStart ) : System.Web.Caching.CacheDependency | ||
virtualPath | string | Virtual path like "~/Views/Home/Index.cshtml" |
dependencies | IEnumerable | The dependencies. |
utcStart | System.DateTime | The UTC start. |
리턴 | System.Web.Caching.CacheDependency |
public GetCacheKey ( string virtualPath ) : string | ||
virtualPath | string | Virtual path like "~/Views/Home/Index.cshtml" |
리턴 | string |
public GetFile ( string virtualPath ) : System.Web.Hosting.VirtualFile | ||
virtualPath | string | Virtual path like "~/Views/Home/Index.cshtml" |
리턴 | System.Web.Hosting.VirtualFile |
public GetFileHash ( string virtualPath, IEnumerable dependencies ) : string | ||
virtualPath | string | Virtual path like "~/Views/Home/Index.cshtml" |
dependencies | IEnumerable | The dependencies. |
리턴 | string |
protected IsFileAllowed ( string resourceName ) : bool | ||
resourceName | string | |
리턴 | bool |
protected LoadStream ( string virtualPath, MappedResource resource ) : Stream | ||
virtualPath | string | Requested virtual path |
resource | MappedResource | Identified resource (i.e. the one to load) |
리턴 | Stream |
protected Map ( |
||
mapping | Mapping to load embedded resources in | |
리턴 | void |