C# Класс Gablarski.WebServer.ResourceTemplateLoader

Наследование: ITemplateLoader
Показать файл Открыть проект

Открытые методы

Метод Описание
CheckTemplate ( ITemplateInfo info ) : bool

Check's whether a template should be reloaded or not.

GetFiles ( string path, string filename ) : string[]

Fetch all files from the resource that matches the specified arguments.

HasTemplate ( string filename ) : bool

Returns whether or not the loader has an instance of the file requested

LoadTemplate ( string path ) : TextReader

Load a template into a T:System.IO.TextReader and return it.

ResourceTemplateLoader ( ) : System

Описание методов

CheckTemplate() публичный Метод

Check's whether a template should be reloaded or not.
public CheckTemplate ( ITemplateInfo info ) : bool
info ITemplateInfo template information
Результат bool

GetFiles() публичный Метод

Fetch all files from the resource that matches the specified arguments.
public GetFiles ( string path, string filename ) : string[]
path string Where the file should reside.
filename string Files to check
Результат string[]

HasTemplate() публичный Метод

Returns whether or not the loader has an instance of the file requested
public HasTemplate ( string filename ) : bool
filename string The name of the template/file
Результат bool

LoadTemplate() публичный Метод

Load a template into a T:System.IO.TextReader and return it.
public LoadTemplate ( string path ) : TextReader
path string Relative path (and filename) to template.
Результат TextReader

ResourceTemplateLoader() публичный Метод

public ResourceTemplateLoader ( ) : System
Результат System