C# Class Subtext.Framework.InstallationManager

Class used to help make determine whether an installation is required or not.
Afficher le fichier Open project: ayende/Subtext

Méthodes publiques

Méthode Description
GetCurrentInstallationState ( System.Version assemblyVersion ) : InstallationState

Gets the installation status.

GetInstallationInformationControl ( ) : Control

Gets the installation information control.

InstallationActionRequired ( Exception unhandledException, System.Version assemblyVersion ) : bool

Determines whether an installation action is required by examining the specified unhandled Exception.

IsInstallationActionRequired ( System.Version assemblyVersion ) : bool

Gets a value indicating whether this instance is installation action required.

ResetInstallationStatusCache ( ) : void
SetInstallationQuestionAnswers ( Control control ) : void

Sets the installation question answers.

ValidateInstallationAnswers ( Control populatedControl ) : string

Validates the installation information provided by the user. Returns a string with error information. The string is empty if there are no errors.

Method Details

GetCurrentInstallationState() public static méthode

Gets the installation status.
public static GetCurrentInstallationState ( System.Version assemblyVersion ) : InstallationState
assemblyVersion System.Version Gets the version of the currently installed assembly.
Résultat InstallationState

GetInstallationInformationControl() public static méthode

Gets the installation information control.
public static GetInstallationInformationControl ( ) : Control
Résultat System.Web.UI.Control

InstallationActionRequired() public static méthode

Determines whether an installation action is required by examining the specified unhandled Exception.
public static InstallationActionRequired ( Exception unhandledException, System.Version assemblyVersion ) : bool
unhandledException System.Exception Unhandled exception.
assemblyVersion System.Version The version of the currently installed assembly.
Résultat bool

IsInstallationActionRequired() public static méthode

Gets a value indicating whether this instance is installation action required.
public static IsInstallationActionRequired ( System.Version assemblyVersion ) : bool
assemblyVersion System.Version The version of the currently installed assembly.
Résultat bool

ResetInstallationStatusCache() public static méthode

public static ResetInstallationStatusCache ( ) : void
Résultat void

SetInstallationQuestionAnswers() public static méthode

Sets the installation question answers.
public static SetInstallationQuestionAnswers ( Control control ) : void
control System.Web.UI.Control Control containing the user's answers.
Résultat void

ValidateInstallationAnswers() public static méthode

Validates the installation information provided by the user. Returns a string with error information. The string is empty if there are no errors.
public static ValidateInstallationAnswers ( Control populatedControl ) : string
populatedControl System.Web.UI.Control Information.
Résultat string