C# Class WindowsAzure.IPAddressRestriction.IPAddressRestrictionManager

Afficher le fichier Open project: sandrinodimattia/WindowsAzure-IPAddressRestriction Class Usage Examples

Méthodes publiques

Méthode Description
AddRule ( Restriction restriction ) : void

Add a rule to the firewall.

Apply ( IEnumerable restrictions, bool deleteAllOtherRules = true ) : void

Apply IP Address restrictions to the firewall and remove all rules which were previously added.

ApplySettings ( string settings, bool deleteAllOtherRules = true ) : void

Apply settings to the firewall and disable all other rules matching the same ports.

DeleteRules ( ) : void

Delete rules which have been created before.

DeleteRules ( IEnumerable ruleNames ) : void

Delete rules.

DeleteRules ( List hostnameRestrictions ) : void

Delete rules.

DisableRules ( string localPort ) : void

Disabled all rules related to a specific port.

IPAddressRestrictionManager ( ) : System

Initialize the manager.

ResetDisabledRules ( ) : void

Reset all disabled rules.

Private Methods

Méthode Description
GetArray ( string text, char separator ) : string[]

Convert a string to an array.

GetFirewallRules ( ) : dynamic

Get the current firewall rules.

Method Details

AddRule() public méthode

Add a rule to the firewall.
public AddRule ( Restriction restriction ) : void
restriction Restriction
Résultat void

Apply() public méthode

Apply IP Address restrictions to the firewall and remove all rules which were previously added.
public Apply ( IEnumerable restrictions, bool deleteAllOtherRules = true ) : void
restrictions IEnumerable
deleteAllOtherRules bool Delete all other rules which have been created before.
Résultat void

ApplySettings() public méthode

Apply settings to the firewall and disable all other rules matching the same ports.
public ApplySettings ( string settings, bool deleteAllOtherRules = true ) : void
settings string 80=8.8.8.8,9.9.9.9;81=8.8.8.8
deleteAllOtherRules bool Delete all other rules which have been created before.
Résultat void

DeleteRules() public méthode

Delete rules which have been created before.
public DeleteRules ( ) : void
Résultat void

DeleteRules() public méthode

Delete rules.
public DeleteRules ( IEnumerable ruleNames ) : void
ruleNames IEnumerable
Résultat void

DeleteRules() public méthode

Delete rules.
public DeleteRules ( List hostnameRestrictions ) : void
hostnameRestrictions List
Résultat void

DisableRules() public méthode

Disabled all rules related to a specific port.
public DisableRules ( string localPort ) : void
localPort string
Résultat void

IPAddressRestrictionManager() public méthode

Initialize the manager.
public IPAddressRestrictionManager ( ) : System
Résultat System

ResetDisabledRules() public méthode

Reset all disabled rules.
public ResetDisabledRules ( ) : void
Résultat void