C# Class ServiceStack.Host.Handlers.StaticFileHandler

Inheritance: IHttpHandler, IServiceStackHttpHandler
Mostrar archivo Open project: nustack/ServiceStack

Private Properties

Property Type Description
CreateDirIndex string>.Dictionary
CreateFileIndex string>.Dictionary
GetDirs List
GetFiles IEnumerable

Public Methods

Method Description
DirectoryExists ( string dirPath, string appFilePath ) : bool
ProcessRequest ( System.Web.HttpContextBase context ) : void
ProcessRequest ( IRequest request, IResponse response, string operationName ) : void
SetDefaultFile ( string defaultFilePath, byte defaultFileContents, System.DateTime defaultFileModified ) : void

Keep default file contents in-memory

Private Methods

Method Description
CreateDirIndex ( string appFilePath ) : string>.Dictionary
CreateFileIndex ( string appFilePath ) : string>.Dictionary
GetDirs ( string path ) : List
GetFiles ( string path ) : IEnumerable

Method Details

DirectoryExists() public static method

public static DirectoryExists ( string dirPath, string appFilePath ) : bool
dirPath string
appFilePath string
return bool

ProcessRequest() public method

public ProcessRequest ( System.Web.HttpContextBase context ) : void
context System.Web.HttpContextBase
return void

ProcessRequest() public method

public ProcessRequest ( IRequest request, IResponse response, string operationName ) : void
request IRequest
response IResponse
operationName string
return void

SetDefaultFile() public method

Keep default file contents in-memory
public SetDefaultFile ( string defaultFilePath, byte defaultFileContents, System.DateTime defaultFileModified ) : void
defaultFilePath string
defaultFileContents byte
defaultFileModified System.DateTime
return void