C# Class Site, RazorPub

显示文件 Open project: RazorAnt/RazorPub Class Usage Examples

Public Methods

Method Description
ClearStartPageCache ( ) : void
FingerPrint ( string rootRelativePath, string cdnPath = "" ) : string
GetCategories ( ) : int>.Dictionary
GetNextPage ( ) : string
GetPagingUrl ( int move ) : string
GetPosts ( int postsPerPage ) : IEnumerable
GetPrevPage ( ) : string
GetTags ( ) : List
IsTopPost ( Post post ) : bool
SaveFileToDisk ( byte bytes, string filename, string extension ) : string
SetConditionalGetHeaders ( DateTime lastModified, HttpContextBase context ) : void
ValidateToken ( HttpContext context ) : void

Private Methods

Method Description
Site ( ) : System

Method Details

ClearStartPageCache() public static method

public static ClearStartPageCache ( ) : void
return void

FingerPrint() public static method

public static FingerPrint ( string rootRelativePath, string cdnPath = "" ) : string
rootRelativePath string
cdnPath string
return string

GetCategories() public static method

public static GetCategories ( ) : int>.Dictionary
return int>.Dictionary

GetNextPage() public static method

public static GetNextPage ( ) : string
return string

GetPagingUrl() public static method

public static GetPagingUrl ( int move ) : string
move int
return string

GetPosts() public static method

public static GetPosts ( int postsPerPage ) : IEnumerable
postsPerPage int
return IEnumerable

GetPrevPage() public static method

public static GetPrevPage ( ) : string
return string

GetTags() public static method

public static GetTags ( ) : List
return List

IsTopPost() public static method

public static IsTopPost ( Post post ) : bool
post Post
return bool

SaveFileToDisk() public static method

public static SaveFileToDisk ( byte bytes, string filename, string extension ) : string
bytes byte
filename string
extension string
return string

SetConditionalGetHeaders() public static method

public static SetConditionalGetHeaders ( DateTime lastModified, HttpContextBase context ) : void
lastModified DateTime
context HttpContextBase
return void

ValidateToken() public static method

public static ValidateToken ( HttpContext context ) : void
context HttpContext
return void