C# Class TeamCitySiteValidator.IisConfiguration

Creates an IIS Express config file that hosts two websites (Witness and website under test). Can start the website processes. Deletes the file when disposed.
Inheritance: IDisposable
ファイルを表示 Open project: nhsevidence/teamcitysitevalidator Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
FreeTcpPort ( ) : int
IisConfiguration ( string websitePath, Microsoft.Build.Utilities.TaskLoggingHelper log ) : System
StartWebsites ( ) : System.Diagnostics.Process[]

Private Methods

Method Description
CreateConfigFile ( string websitePath, int websitePort ) : void
GetIISExpressExePath ( ) : string
LoadTemplateConfigXml ( ) : System.Xml.Linq.XDocument
SiteElement ( int id, string name, string physicalPath, int port ) : System.Xml.Linq.XElement
UniqueConfigFilename ( string witnessRootDirectory ) : string

Method Details

Dispose() public method

public Dispose ( ) : void
return void

FreeTcpPort() public static method

public static FreeTcpPort ( ) : int
return int

IisConfiguration() public method

public IisConfiguration ( string websitePath, Microsoft.Build.Utilities.TaskLoggingHelper log ) : System
websitePath string
log Microsoft.Build.Utilities.TaskLoggingHelper
return System

StartWebsites() public method

public StartWebsites ( ) : System.Diagnostics.Process[]
return System.Diagnostics.Process[]