C# Класс WindowsAzure.IPAddressRestriction.IPAddressRestrictionManager

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GetArray ( string text, char separator ) : string[]

Convert a string to an array.

GetFirewallRules ( ) : dynamic

Get the current firewall rules.

Описание методов

AddRule() публичный Метод

Add a rule to the firewall.
public AddRule ( Restriction restriction ) : void
restriction Restriction
Результат void

Apply() публичный Метод

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.
Результат void

ApplySettings() публичный Метод

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.
Результат void

DeleteRules() публичный Метод

Delete rules which have been created before.
public DeleteRules ( ) : void
Результат void

DeleteRules() публичный Метод

Delete rules.
public DeleteRules ( IEnumerable ruleNames ) : void
ruleNames IEnumerable
Результат void

DeleteRules() публичный Метод

Delete rules.
public DeleteRules ( List hostnameRestrictions ) : void
hostnameRestrictions List
Результат void

DisableRules() публичный Метод

Disabled all rules related to a specific port.
public DisableRules ( string localPort ) : void
localPort string
Результат void

IPAddressRestrictionManager() публичный Метод

Initialize the manager.
public IPAddressRestrictionManager ( ) : System
Результат System

ResetDisabledRules() публичный Метод

Reset all disabled rules.
public ResetDisabledRules ( ) : void
Результат void