C# Класс Dimi.InstantRDF.Installation.InstallAction

The custom installation actions of the InstantRDF package
Наследование: IPackageAction
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

AddRuleToUrlRewritingConfig() публичный Метод

Adds the rule to URL rewriting config.
public AddRuleToUrlRewritingConfig ( ) : bool
Результат bool

AddSettingsToWebConfig() публичный Метод

Adds the settings to web.config.
public AddSettingsToWebConfig ( ) : bool
Результат bool

Alias() публичный Метод

Returns the alias of this action.
public Alias ( ) : string
Результат string

Execute() публичный Метод

Executes the custom installation actions.
public Execute ( string packageName, System xmlData ) : bool
packageName string Name of the package.
xmlData System The XML data.
Результат bool

RemoveRuleFromUrlRewritingConfig() публичный Метод

Removes the rule from URL rewriting config.
public RemoveRuleFromUrlRewritingConfig ( ) : bool
Результат bool

RemoveSettingsFromWebConfig() публичный Метод

Removes the settings from web.config.
public RemoveSettingsFromWebConfig ( ) : bool
Результат bool

SampleXml() публичный Метод

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
Результат System.Xml.XmlNode

SetPreferredUrl() публичный Метод

Sets the preferred URL in config/InstantRDF.config.
public SetPreferredUrl ( ) : bool
Результат bool

Undo() публичный Метод

Undoes the custom installation actions.
public Undo ( string packageName, System xmlData ) : bool
packageName string Name of the package.
xmlData System The XML data.
Результат bool