C# 클래스 WindowsAzure.IPAddressRestriction.IPAddressRestrictionManager

파일 보기 프로젝트 열기: sandrinodimattia/WindowsAzure-IPAddressRestriction 1 사용 예제들

공개 메소드들

메소드 설명
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