C# Class Dimi.InstantRDF.Installation.InstallAction

The custom installation actions of the InstantRDF package
Inheritance: IPackageAction
Afficher le fichier Open project: coding3d/InstantRDF Class Usage Examples

Méthodes publiques

Méthode Description
AddRuleToUrlRewritingConfig ( ) : bool

Adds the rule to URL rewriting config.

AddSettingsToWebConfig ( ) : bool

Adds the settings to web.config.

Alias ( ) : string

Returns the alias of this action.

Execute ( string packageName, System xmlData ) : bool

Executes the custom installation actions.

RemoveRuleFromUrlRewritingConfig ( ) : bool

Removes the rule from URL rewriting config.

RemoveSettingsFromWebConfig ( ) : bool

Removes the settings from web.config.

SampleXml ( ) : System.Xml.XmlNode

Returns a sample of the XML tag that needs to be entered into the package, in order to activate the action.

SetPreferredUrl ( ) : bool

Sets the preferred URL in config/InstantRDF.config.

Undo ( string packageName, System xmlData ) : bool

Undoes the custom installation actions.

Private Methods

Méthode Description
CreateDatabaseTable ( ) : bool

Creates the database table.

DropDatabaseTable ( ) : bool

Drops the database table.

GetInstantRdfConfigPath ( ) : string

Gets the instant RDF config path.

GetUrlRewritingConfigPath ( ) : string

Gets the URL rewriting config path.

GetWebConfigPath ( ) : string

Gets the web.config path.

Method Details

AddRuleToUrlRewritingConfig() public méthode

Adds the rule to URL rewriting config.
public AddRuleToUrlRewritingConfig ( ) : bool
Résultat bool

AddSettingsToWebConfig() public méthode

Adds the settings to web.config.
public AddSettingsToWebConfig ( ) : bool
Résultat bool

Alias() public méthode

Returns the alias of this action.
public Alias ( ) : string
Résultat string

Execute() public méthode

Executes the custom installation actions.
public Execute ( string packageName, System xmlData ) : bool
packageName string Name of the package.
xmlData System The XML data.
Résultat bool

RemoveRuleFromUrlRewritingConfig() public méthode

Removes the rule from URL rewriting config.
public RemoveRuleFromUrlRewritingConfig ( ) : bool
Résultat bool

RemoveSettingsFromWebConfig() public méthode

Removes the settings from web.config.
public RemoveSettingsFromWebConfig ( ) : bool
Résultat bool

SampleXml() public méthode

Returns a sample of the XML tag that needs to be entered into the package, in order to activate the action.
public SampleXml ( ) : System.Xml.XmlNode
Résultat System.Xml.XmlNode

SetPreferredUrl() public méthode

Sets the preferred URL in config/InstantRDF.config.
public SetPreferredUrl ( ) : bool
Résultat bool

Undo() public méthode

Undoes the custom installation actions.
public Undo ( string packageName, System xmlData ) : bool
packageName string Name of the package.
xmlData System The XML data.
Résultat bool