C# Class Dimi.InstantRDF.Installation.InstallAction

The custom installation actions of the InstantRDF package
Inheritance: IPackageAction
ファイルを表示 Open project: coding3d/InstantRDF Class Usage Examples

Public Methods

Method 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

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

Adds the rule to URL rewriting config.
public AddRuleToUrlRewritingConfig ( ) : bool
return bool

AddSettingsToWebConfig() public method

Adds the settings to web.config.
public AddSettingsToWebConfig ( ) : bool
return bool

Alias() public method

Returns the alias of this action.
public Alias ( ) : string
return string

Execute() public method

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

RemoveRuleFromUrlRewritingConfig() public method

Removes the rule from URL rewriting config.
public RemoveRuleFromUrlRewritingConfig ( ) : bool
return bool

RemoveSettingsFromWebConfig() public method

Removes the settings from web.config.
public RemoveSettingsFromWebConfig ( ) : bool
return bool

SampleXml() public method

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
return System.Xml.XmlNode

SetPreferredUrl() public method

Sets the preferred URL in config/InstantRDF.config.
public SetPreferredUrl ( ) : bool
return bool

Undo() public method

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