C# 클래스 ImageProcessor.Umbraco.PackageActions.AddHttpModule

This package action will Add a new HTTP Module to the web.config file.
This package action has been adapted from the PackageActionsContrib Project. http://packageactioncontrib.codeplex.com
상속: IPackageAction
파일 보기 프로젝트 열기: JimBobSquarePants/ImageProcessor.Umbraco

공개 메소드들

메소드 설명
Alias ( ) : string

This Alias must be unique and is used as an identifier that must match the alias in the package action XML.

Execute ( string packageName, XmlNode xmlData ) : bool

Append the xmlData node to the web.config file

SampleXml ( ) : XmlNode

Returns a Sample XML Node In this case the Sample HTTP Module TimingModule

Test ( ) : bool

Tests if the ImageProcessor HTTP module is added to web.config

Undo ( string packageName, XmlNode xmlData ) : bool

Removes the xmlData node from the web.config file

비공개 메소드들

메소드 설명
getAttribute ( XmlNode xmlData, string attribute, string &value ) : bool

Get a named attribute from xmlData root node

getAttributeDefault ( XmlNode xmlData, string attribute, string defaultValue ) : string

Get an optional named attribute from xmlData root node when attribute is unavailable, return the default value

getUser ( ) : umbraco.BusinessLogic.User

Get the current user, or when unavailable admin user

메소드 상세

Alias() 공개 메소드

This Alias must be unique and is used as an identifier that must match the alias in the package action XML.
public Alias ( ) : string
리턴 string

Execute() 공개 메소드

Append the xmlData node to the web.config file
public Execute ( string packageName, XmlNode xmlData ) : bool
packageName string Name of the package that we install
xmlData System.Xml.XmlNode The data that must be appended to the web.config file
리턴 bool

SampleXml() 공개 메소드

Returns a Sample XML Node In this case the Sample HTTP Module TimingModule
public SampleXml ( ) : XmlNode
리턴 System.Xml.XmlNode

Test() 공개 정적인 메소드

Tests if the ImageProcessor HTTP module is added to web.config
public static Test ( ) : bool
리턴 bool

Undo() 공개 메소드

Removes the xmlData node from the web.config file
public Undo ( string packageName, XmlNode xmlData ) : bool
packageName string Name of the package that we install
xmlData System.Xml.XmlNode The data that must be appended to the web.config file
리턴 bool