RewriteManager Class

Summary

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

Syntax

public class RewriteManager : BaseManager

Constructors

Name Summary
RewriteManager(ICakeEnvironment, ICakeLog) Initializes a new instance of the RewriteManager 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
Connect(string) ServerManager
Creates a IIS ServerManager
Inherited from BaseManager
static
CreateRule(RewriteRuleSettings) void
Creates a rewrite rule
DeleteRule(string) bool
Delete a rewrite rule
Exists(string) bool
Checks if a rewrite rule exists
GetPhysicalDirectory(IDirectorySettings) string
Gets the physical directory from the working directory
Inherited from BaseManager
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
Using(ICakeEnvironment, ICakeLog, ServerManager) RewriteManager
Creates a new instance of the RewriteManager class.
static

Extension Methods

Name Value Summary
Dump<RewriteManager>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<RewriteManager>(RewriteManager[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<RewriteManager>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<RewriteManager>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<RewriteManager>(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<RewriteManager>(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