Method | Description | |
---|---|---|
GetFileData ( string relativeFilePath ) : byte[] |
Gets the file data.
|
|
GetFileLastModificationTime ( string relativeFilePath ) : System.DateTime |
Gets the file last modification time.
|
|
GetIfModifiedSinceTime ( IHeaderDictionary headers ) : DateTime? |
Gets If-Modified-Since time header from headers collection.
|
|
GetRelativeFilePath ( IOwinRequest request ) : string |
Gets the relative file path of request.
|
|
IsFileCanBeUsedFromCache ( string cacheControlHeader, System.DateTime ifModifiedSinceHeader, System.DateTime fileLastModifiedTime ) : bool |
Determines whether file can be used from cached.
|
|
IsStaticFileRoutePath ( string relativeFilePath ) : bool |
Determines whether relative file path is a static file route path.
|
|
StaticFileHandler ( IList |
Initializes a new instance of the StaticFileHandler class.
|
public GetFileData ( string relativeFilePath ) : byte[] | ||
relativeFilePath | string | The relative file path. |
return | byte[] |
public GetFileLastModificationTime ( string relativeFilePath ) : System.DateTime | ||
relativeFilePath | string | The relative file path. |
return | System.DateTime |
public GetIfModifiedSinceTime ( IHeaderDictionary headers ) : DateTime? | ||
headers | IHeaderDictionary | The headers. |
return | DateTime? |
public GetRelativeFilePath ( IOwinRequest request ) : string | ||
request | IOwinRequest | The request. |
return | string |
public IsFileCanBeUsedFromCache ( string cacheControlHeader, System.DateTime ifModifiedSinceHeader, System.DateTime fileLastModifiedTime ) : bool | ||
cacheControlHeader | string | The cache control header. |
ifModifiedSinceHeader | System.DateTime | If modified since header. |
fileLastModifiedTime | System.DateTime | The file last modified time. |
return | bool |
public IsStaticFileRoutePath ( string relativeFilePath ) : bool | ||
relativeFilePath | string | The relative file path. |
return | bool |
public StaticFileHandler ( IList |
||
staticFilesPaths | IList |
The static files paths. |
sitePhysicalPath | string | The site physical path. |
return | System |