C# Class Subtext.Framework.InstallationManager

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

Public Methods

Method 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 method

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

GetInstallationInformationControl() public static method

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

InstallationActionRequired() public static method

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

IsInstallationActionRequired() public static method

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

ResetInstallationStatusCache() public static method

public static ResetInstallationStatusCache ( ) : void
return void

SetInstallationQuestionAnswers() public static method

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

ValidateInstallationAnswers() public static method

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