C# Class Sage.Configuration.EnvironmentConfiguration

Provides environment configuration options, such as IP address ranges.
Inheritance: IXmlConvertible
ファイルを表示 Open project: igorfrance/sage Class Usage Examples

Public Methods

Method Description
EnvironmentConfiguration ( ) : System

Initializes a new instance of the EnvironmentConfiguration class.

IsBlockedIp ( string clientIpAddress ) : bool

Determines whether the specified clientIpAddress is configured to be blocked.

IsDeveloperIp ( string clientIpAddress ) : bool

Determines whether the specified clientIpAddress is configured to be treated as a developer.

Parse ( XmlElement configuration ) : void
ToXml ( XmlDocument document ) : XmlElement

Private Methods

Method Description
EnvironmentConfiguration ( EnvironmentConfiguration init ) : System

Initializes a new instance of the EnvironmentConfiguration class, using the specified instance to initialize the content of this instance.

Method Details

EnvironmentConfiguration() public method

Initializes a new instance of the EnvironmentConfiguration class.
public EnvironmentConfiguration ( ) : System
return System

IsBlockedIp() public method

Determines whether the specified clientIpAddress is configured to be blocked.
public IsBlockedIp ( string clientIpAddress ) : bool
clientIpAddress string The client IP address to test.
return bool

IsDeveloperIp() public method

Determines whether the specified clientIpAddress is configured to be treated as a developer.
public IsDeveloperIp ( string clientIpAddress ) : bool
clientIpAddress string The client IP address to test.
return bool

Parse() public method

public Parse ( XmlElement configuration ) : void
configuration System.Xml.XmlElement
return void

ToXml() public method

public ToXml ( XmlDocument document ) : XmlElement
document System.Xml.XmlDocument
return System.Xml.XmlElement