C# Class FuncTest.IIS.IisWebSite

The IIS web application.
Inheritance: IDisposable
Show file Open project: Microsoft/ApplicationInsights-dotnet-server Class Usage Examples

Public Methods

Method Description
AddBinding ( string bindingInfo, string bindingProtocol ) : void

Adds binding.

AddToIisIfNotExists ( ) : void

Adds site to IIS if not exists (constructor adds site by default).

ClearBindings ( ) : void

Clears all bindings.

Dispose ( ) : void

Disposes the instance of IIS Web Site and frees the underlying resources, can reduce the amount of the memory leak in Server Manager

IisWebSite ( Site iisSite ) : System

Initializes a new instance of the IisWebSite class.

IisWebSite ( string siteName, string sitePhysicalPath, int sitePort, IisApplicationPool pool ) : System

Initializes a new instance of the IisWebSite class.

Remove ( ) : void

Removes the Site from IIS.

Method Details

AddBinding() public method

Adds binding.
public AddBinding ( string bindingInfo, string bindingProtocol ) : void
bindingInfo string /// The binding info. ///
bindingProtocol string /// The binding protocol. ///
return void

AddToIisIfNotExists() public method

Adds site to IIS if not exists (constructor adds site by default).
public AddToIisIfNotExists ( ) : void
return void

ClearBindings() public method

Clears all bindings.
public ClearBindings ( ) : void
return void

Dispose() public method

Disposes the instance of IIS Web Site and frees the underlying resources, can reduce the amount of the memory leak in Server Manager
public Dispose ( ) : void
return void

IisWebSite() public method

Initializes a new instance of the IisWebSite class.
public IisWebSite ( Site iisSite ) : System
iisSite Microsoft.Web.Administration.Site /// The IIS site. ///
return System

IisWebSite() public method

Initializes a new instance of the IisWebSite class.
public IisWebSite ( string siteName, string sitePhysicalPath, int sitePort, IisApplicationPool pool ) : System
siteName string /// The site Name. ///
sitePhysicalPath string /// The site Physical Path. ///
sitePort int /// The site Port. ///
pool IisApplicationPool /// The pool. ///
return System

Remove() public method

Removes the Site from IIS.
public Remove ( ) : void
return void