C# 클래스 Subtext.Extensibility.Providers.Installation

Provider for classes that implement installation procedures. This allows new data providers to implement their own installation code.
상속: System.Configuration.Provider.ProviderBase
파일 보기 프로젝트 열기: ayende/Subtext

공개 메소드들

메소드 설명
GatherInstallationInformation ( ) : Control

This method is called by the installation engine in order to ask the provider what pieces of information it needs from the user in order to proceed with the installation.

This method returns a Control used to gather the required installation information. This will be returned back to the provider after the user provides the information.

GetCurrentInstallationVersion ( ) : System.Version

Gets the Version of the current Subtext installation.

GetInstallationStatus ( System.Version currentAssemblyVersion ) : InstallationState

Gets the installation status.

Install ( System.Version assemblyVersion ) : void

Installs this instance.

IsInstallationException ( Exception exception ) : bool

Determines whether the specified exception is due to a problem with the installation.

IsPermissionDeniedException ( Exception exception ) : bool

Determines whether the specified exception is due to a permission denied error.

ProvideInstallationInformation ( Control populatedControl ) : void

Provides the installation information as provided by the user back into the provider. The control passed in should be the same as that provided in GatherInstallationInformation, but with user values supplied within it.

Repair ( ) : bool

Attempts to repair this instance. Returns true if it was successful.

UpdateInstallationVersionNumber ( System.Version newVersion, SqlTransaction transaction ) : void

Updates the current installed version.

Upgrade ( ) : void

Upgrades this instance. Returns true if it was successful.

ValidateInstallationInformation ( Control control ) : string

Validates the installation information provided by the user. Returns a string with an explanation of why it is incorrect.

메소드 상세

GatherInstallationInformation() 공개 추상적인 메소드

This method is called by the installation engine in order to ask the provider what pieces of information it needs from the user in order to proceed with the installation.

This method returns a Control used to gather the required installation information. This will be returned back to the provider after the user provides the information.

public abstract GatherInstallationInformation ( ) : Control
리턴 System.Web.UI.Control

GetCurrentInstallationVersion() 공개 추상적인 메소드

Gets the Version of the current Subtext installation.
public abstract GetCurrentInstallationVersion ( ) : System.Version
리턴 System.Version

GetInstallationStatus() 공개 추상적인 메소드

Gets the installation status.
public abstract GetInstallationStatus ( System.Version currentAssemblyVersion ) : InstallationState
currentAssemblyVersion System.Version The version of the assembly that represents this installation.
리턴 InstallationState

Install() 공개 추상적인 메소드

Installs this instance.
public abstract Install ( System.Version assemblyVersion ) : void
assemblyVersion System.Version The current assembly version being installed.
리턴 void

IsInstallationException() 공개 추상적인 메소드

Determines whether the specified exception is due to a problem with the installation.
public abstract IsInstallationException ( Exception exception ) : bool
exception System.Exception exception.
리턴 bool

IsPermissionDeniedException() 공개 추상적인 메소드

Determines whether the specified exception is due to a permission denied error.
public abstract IsPermissionDeniedException ( Exception exception ) : bool
exception System.Exception
리턴 bool

ProvideInstallationInformation() 공개 추상적인 메소드

Provides the installation information as provided by the user back into the provider. The control passed in should be the same as that provided in GatherInstallationInformation, but with user values supplied within it.
public abstract ProvideInstallationInformation ( Control populatedControl ) : void
populatedControl System.Web.UI.Control Populated control.
리턴 void

Repair() 공개 추상적인 메소드

Attempts to repair this instance. Returns true if it was successful.
public abstract Repair ( ) : bool
리턴 bool

UpdateInstallationVersionNumber() 공개 추상적인 메소드

Updates the current installed version.
public abstract UpdateInstallationVersionNumber ( System.Version newVersion, SqlTransaction transaction ) : void
newVersion System.Version The new version that is now current.
transaction System.Data.SqlClient.SqlTransaction The transaction to perform this upgrade within.
리턴 void

Upgrade() 공개 추상적인 메소드

Upgrades this instance. Returns true if it was successful.
public abstract Upgrade ( ) : void
리턴 void

ValidateInstallationInformation() 공개 추상적인 메소드

Validates the installation information provided by the user. Returns a string with an explanation of why it is incorrect.
public abstract ValidateInstallationInformation ( Control control ) : string
control System.Web.UI.Control control used to provide information.
리턴 string