C# Class Subtext.Framework.HostInfo

Represents the system, and its settings, that hosts the blogs within this Subtext installation.
Afficher le fichier Open project: ayende/Subtext Class Usage Examples

Méthodes publiques

Méthode Description
CreateHost ( string hostUserName, string hostPassword ) : bool

Creates the host in the persistent store.

LoadHost ( bool suppressException ) : HostInfo

Loads the host from the Object Provider. This is provided for those cases when we really need to hit the data strore. Calling this method will also reload the HostInfo.Instance from the data store.

SetHostPassword ( HostInfo host, string newPassword ) : void
UpdateHost ( HostInfo host ) : bool

Updates the host in the persistent store.

Private Methods

Méthode Description
HostInfo ( ) : System

Method Details

CreateHost() public static méthode

Creates the host in the persistent store.
public static CreateHost ( string hostUserName, string hostPassword ) : bool
hostUserName string
hostPassword string
Résultat bool

LoadHost() public static méthode

Loads the host from the Object Provider. This is provided for those cases when we really need to hit the data strore. Calling this method will also reload the HostInfo.Instance from the data store.
public static LoadHost ( bool suppressException ) : HostInfo
suppressException bool If true, won't throw an exception.
Résultat HostInfo

SetHostPassword() public static méthode

public static SetHostPassword ( HostInfo host, string newPassword ) : void
host HostInfo
newPassword string
Résultat void

UpdateHost() public static méthode

Updates the host in the persistent store.
public static UpdateHost ( HostInfo host ) : bool
host HostInfo Host.
Résultat bool