C# Class Subtext.Framework.HostInfo

Represents the system, and its settings, that hosts the blogs within this Subtext installation.
ファイルを表示 Open project: ayende/Subtext Class Usage Examples

Public Methods

Method 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

Method Description
HostInfo ( ) : System

Method Details

CreateHost() public static method

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

LoadHost() public static method

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.
return HostInfo

SetHostPassword() public static method

public static SetHostPassword ( HostInfo host, string newPassword ) : void
host HostInfo
newPassword string
return void

UpdateHost() public static method

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