C# Class Sage.Configuration.EnvironmentConfiguration

Provides environment configuration options, such as IP address ranges.
Inheritance: IXmlConvertible
Afficher le fichier Open project: igorfrance/sage Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

Initializes a new instance of the EnvironmentConfiguration class.
public EnvironmentConfiguration ( ) : System
Résultat System

IsBlockedIp() public méthode

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

IsDeveloperIp() public méthode

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.
Résultat bool

Parse() public méthode

public Parse ( XmlElement configuration ) : void
configuration System.Xml.XmlElement
Résultat void

ToXml() public méthode

public ToXml ( XmlDocument document ) : XmlElement
document System.Xml.XmlDocument
Résultat System.Xml.XmlElement