C# 클래스 Simplify.Web.Core.StaticFiles.StaticFileHandler

Provides static file handler
상속: IStaticFileHandler
파일 보기 프로젝트 열기: i4004/Simplify.Web

공개 메소드들

메소드 설명
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 staticFilesPaths, string sitePhysicalPath ) : System

Initializes a new instance of the StaticFileHandler class.

메소드 상세

GetFileData() 공개 메소드

Gets the file data.
public GetFileData ( string relativeFilePath ) : byte[]
relativeFilePath string The relative file path.
리턴 byte[]

GetFileLastModificationTime() 공개 메소드

Gets the file last modification time.
public GetFileLastModificationTime ( string relativeFilePath ) : System.DateTime
relativeFilePath string The relative file path.
리턴 System.DateTime

GetIfModifiedSinceTime() 공개 메소드

Gets If-Modified-Since time header from headers collection.
public GetIfModifiedSinceTime ( IHeaderDictionary headers ) : DateTime?
headers IHeaderDictionary The headers.
리턴 DateTime?

GetRelativeFilePath() 공개 메소드

Gets the relative file path of request.
public GetRelativeFilePath ( IOwinRequest request ) : string
request IOwinRequest The request.
리턴 string

IsFileCanBeUsedFromCache() 공개 메소드

Determines whether file can be used from cached.
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.
리턴 bool

IsStaticFileRoutePath() 공개 메소드

Determines whether relative file path is a static file route path.
public IsStaticFileRoutePath ( string relativeFilePath ) : bool
relativeFilePath string The relative file path.
리턴 bool

StaticFileHandler() 공개 메소드

Initializes a new instance of the StaticFileHandler class.
public StaticFileHandler ( IList staticFilesPaths, string sitePhysicalPath ) : System
staticFilesPaths IList The static files paths.
sitePhysicalPath string The site physical path.
리턴 System