WebsiteManager Class

Summary

Class for managing websites
Assembly
Cake.IIS.dll
Namespace
Cake.IIS
Base Types
graph BT Type-->Base0["BaseSiteManager"] click Base0 "/api/Cake.IIS/BaseSiteManager" Base0-->Base1["BaseManager"] click Base1 "/api/Cake.IIS/BaseManager" Base1-->Base2["Object"] Type["WebsiteManager"] class Type type-node

Syntax

public class WebsiteManager : BaseSiteManager

Constructors

Name Summary
WebsiteManager(ICakeEnvironment, ICakeLog) Initializes a new instance of the WebsiteManager class.

Fields

Name Constant Value Summary
_Environment
Cake environment
Inherited from BaseManager
_Log
Cake log
Inherited from BaseManager
_Server
IIS server manager
Inherited from BaseManager

Methods

Name Value Summary
AddApplication(ApplicationSettings) bool
Adds a virtual application to a IIS site
Inherited from BaseSiteManager
AddBinding(string, BindingSettings) bool
Adds a binding to a IIS site
Inherited from BaseSiteManager
AddVirtualDirectory(VirtualDirectorySettings) bool
Adds a virtual directory to a IIS site
Inherited from BaseSiteManager
ApplicationExists(ApplicationSettings) bool
Checks if a virtual application exists in a IIS site
Inherited from BaseSiteManager
Connect(string) ServerManager
Creates a IIS ServerManager
Inherited from BaseManager
static
Create(WebsiteSettings) void
Creates a website
CreateSite(SiteSettings, bool) Site
Creates a IIS site
Inherited from BaseSiteManager
Delete(string) bool
Delets a site from IIS
Inherited from BaseSiteManager
Exists(string) bool
Checks if a site exists in IIS
Inherited from BaseSiteManager
GetPhysicalDirectory(IDirectorySettings) string
Gets the physical directory from the working directory
Inherited from BaseManager
RemoveApplication(ApplicationSettings) bool
Removes a virtual application to a IIS site
Inherited from BaseSiteManager
RemoveBinding(string, BindingSettings) bool
Removes a binding to a IIS site
Inherited from BaseSiteManager
RemoveVirtualDirectory(VirtualDirectorySettings) bool
Removes a virtual directory from a IIS site
Inherited from BaseSiteManager
SetServer() void
Set the IIS ServerManager
Inherited from BaseManager
SetServer(ServerManager) void
Set the IIS ServerManager
Inherited from BaseManager
SetServer(string) void
Set the IIS ServerManager
Inherited from BaseManager
SetWebConfiguration(string, string, Action<Configuration>) void
Updates the web.config of the given host/site/application.
Inherited from BaseSiteManager
Start(string) bool
Starts a IIS site
Inherited from BaseSiteManager
Stop(string) bool
Stops a IIS site
Inherited from BaseSiteManager
Using(ICakeEnvironment, ICakeLog, ServerManager) WebsiteManager
Creates a new instance of the WebsiteManager class.
static
VirtualDirectoryExists(VirtualDirectorySettings) bool
Checks if a virtual directory exists in a IIS site
Inherited from BaseSiteManager

Extension Methods

Name Value Summary
Dump<WebsiteManager>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<WebsiteManager>(WebsiteManager[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<WebsiteManager>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<WebsiteManager>(string) void
Requires the Cake.Issues addin
ThrowIfNull<WebsiteManager>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<WebsiteManager>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin