C# Class Subtext.Framework.BlogInfo

Afficher le fichier Open project: ayende/Subtext Class Usage Examples

Méthodes publiques

Méthode Description
ClearBlogContent ( int blogId ) : void
Equals ( object obj ) : bool

Returns true if the two instances are equal

GetAlternateHostAlias ( string host ) : string

If the host starts with www., gets the host without the www. If it doesn't start with www., returns the host with www.

GetBlogAliases ( int pageIndex, int pageSize ) : IPagedCollection
GetBlogById ( int blogId ) : BlogInfo

Gets the blog by id.

GetBlogs ( int pageIndex, int pageSize, ConfigurationFlags flags ) : IPagedCollection

Returns a IList{T} containing ACTIVE the BlogInfo instances within the specified range.

GetBlogsByHost ( string host, int pageIndex, int pageSize, ConfigurationFlags flags ) : IPagedCollection

Gets the active blog count by host.

GetHashCode ( ) : int

Serves as the hash function for the type BlogInfo, suitable for use in hashing functions.

StripPortFromHost ( string host ) : string

Strips the port number from the host name.

StripWwwPrefixFromHost ( string host ) : string

Strips www prefix from host name.

Méthodes protégées

Méthode Description
FlagPropertyCheck ( ConfigurationFlags cf ) : bool

Checks to see if the specified ConfigurationFlag matches a flag set for this blog.

FlagSetter ( ConfigurationFlags cf, bool select ) : void

Adds or removes a ConfigurationFlag to the flags set for this blog via bitmask operations.

Private Methods

Méthode Description
InitAggregateBlog ( ) : BlogInfo

Method Details

ClearBlogContent() public static méthode

public static ClearBlogContent ( int blogId ) : void
blogId int
Résultat void

Equals() public méthode

Returns true if the two instances are equal
public Equals ( object obj ) : bool
obj object Obj.
Résultat bool

FlagPropertyCheck() protected méthode

Checks to see if the specified ConfigurationFlag matches a flag set for this blog.
protected FlagPropertyCheck ( ConfigurationFlags cf ) : bool
cf ConfigurationFlags Cf.
Résultat bool

FlagSetter() protected méthode

Adds or removes a ConfigurationFlag to the flags set for this blog via bitmask operations.
protected FlagSetter ( ConfigurationFlags cf, bool select ) : void
cf ConfigurationFlags Cf.
select bool Select.
Résultat void

GetAlternateHostAlias() public static méthode

If the host starts with www., gets the host without the www. If it doesn't start with www., returns the host with www.
public static GetAlternateHostAlias ( string host ) : string
host string Host.
Résultat string

GetBlogAliases() public méthode

public GetBlogAliases ( int pageIndex, int pageSize ) : IPagedCollection
pageIndex int
pageSize int
Résultat IPagedCollection

GetBlogById() public static méthode

Gets the blog by id.
public static GetBlogById ( int blogId ) : BlogInfo
blogId int Blog id.
Résultat BlogInfo

GetBlogs() public static méthode

Returns a IList{T} containing ACTIVE the BlogInfo instances within the specified range.
public static GetBlogs ( int pageIndex, int pageSize, ConfigurationFlags flags ) : IPagedCollection
pageIndex int Page index.
pageSize int Size of the page.
flags ConfigurationFlags
Résultat IPagedCollection

GetBlogsByHost() public static méthode

Gets the active blog count by host.
public static GetBlogsByHost ( string host, int pageIndex, int pageSize, ConfigurationFlags flags ) : IPagedCollection
host string The host.
pageIndex int Zero based index of the page to retrieve.
pageSize int Number of records to display on the page.
flags ConfigurationFlags Configuration flags to filter blogs retrieved.
Résultat IPagedCollection

GetHashCode() public méthode

Serves as the hash function for the type BlogInfo, suitable for use in hashing functions.
public GetHashCode ( ) : int
Résultat int

StripPortFromHost() public static méthode

Strips the port number from the host name.
public static StripPortFromHost ( string host ) : string
host string Host.
Résultat string

StripWwwPrefixFromHost() public static méthode

Strips www prefix from host name.
public static StripWwwPrefixFromHost ( string host ) : string
host string Host.
Résultat string