C# 클래스 Griffin.WebServer.Files.DiskFileService

Serves files from the hard drive.
상속: IFileService
파일 보기 프로젝트 열기: jgauffin/Griffin.WebServer 1 사용 예제들

공개 메소드들

메소드 설명
DiskFileService ( string rootUri, string rootFilePath, bool substituteGzipFiles = false ) : System

Initializes a new instance of the CompositeFileService class.

GetDirectories ( Uri uri ) : IEnumerable

Gets a list of all sub directores

GetFile ( Griffin.WebServer.Files.FileContext context ) : bool

Get a file

GetFiles ( Uri uri ) : IEnumerable

Get all files that exists in the specified directory

IsDirectory ( Uri uri ) : bool

Gets if the specified url corresponds to a directory serving files

비공개 메소드들

메소드 설명
GetDefaultFile ( ) : string
GetFullPath ( Uri uri ) : string

메소드 상세

DiskFileService() 공개 메소드

Initializes a new instance of the CompositeFileService class.
public DiskFileService ( string rootUri, string rootFilePath, bool substituteGzipFiles = false ) : System
rootUri string Serve all files which are located under this URI
rootFilePath string Path to serve files from.
substituteGzipFiles bool When enabled, if a file is requested and a file with the same name + .gz exists, that version will be served instead (so long as the client supports this)
리턴 System

GetDirectories() 공개 메소드

Gets a list of all sub directores
public GetDirectories ( Uri uri ) : IEnumerable
uri System.Uri URI (as requested by the HTTP client) which should correspond to a directory.
리턴 IEnumerable

GetFile() 공개 메소드

Get a file
public GetFile ( Griffin.WebServer.Files.FileContext context ) : bool
context Griffin.WebServer.Files.FileContext Context used to locate and return files
리턴 bool

GetFiles() 공개 메소드

Get all files that exists in the specified directory
public GetFiles ( Uri uri ) : IEnumerable
uri System.Uri Uri
리턴 IEnumerable

IsDirectory() 공개 메소드

Gets if the specified url corresponds to a directory serving files
public IsDirectory ( Uri uri ) : bool
uri System.Uri Uri
리턴 bool