C# Class ProxyManager.AppManager

Exibir arquivo Open project: c-jiang/ProxyManager Class Usage Examples

Public Methods

Method Description
AppManager ( string appDir ) : System
ApplyProfileItemAutoStart ( ) : void
ApplyProfileUpdate ( ) : void
AutoSwitchProxy ( ) : void
DetectorNotify_NetworkChanged ( object sender, EventArgs e ) : void
DisableProxy ( ) : void
EnableProxy ( ) : void
EnableProxy ( ProxyItem pi ) : void
IsLoadAppProfileFailed ( ) : bool
LoadAppEnvironment ( ) : bool
LoadAppProfile ( ) : bool
SetCurrentWorkMode ( WorkMode newMode ) : void
StartCurrentWorkMode ( ) : void

Private Methods

Method Description
FindMatchedProxyItem ( ) : ProxyItem
IsExpressionMatched ( string exp, string target ) : bool
IsRuleMatched ( ApplyRule rule ) : bool
RunProcessProxyAgent ( string args ) : void

Method Details

AppManager() public method

public AppManager ( string appDir ) : System
appDir string
return System

ApplyProfileItemAutoStart() public method

public ApplyProfileItemAutoStart ( ) : void
return void

ApplyProfileUpdate() public method

public ApplyProfileUpdate ( ) : void
return void

AutoSwitchProxy() public method

public AutoSwitchProxy ( ) : void
return void

DetectorNotify_NetworkChanged() public method

public DetectorNotify_NetworkChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

DisableProxy() public method

public DisableProxy ( ) : void
return void

EnableProxy() public method

public EnableProxy ( ) : void
return void

EnableProxy() public method

public EnableProxy ( ProxyItem pi ) : void
pi ProxyItem
return void

IsLoadAppProfileFailed() public method

public IsLoadAppProfileFailed ( ) : bool
return bool

LoadAppEnvironment() public method

public LoadAppEnvironment ( ) : bool
return bool

LoadAppProfile() public method

public LoadAppProfile ( ) : bool
return bool

SetCurrentWorkMode() public method

public SetCurrentWorkMode ( WorkMode newMode ) : void
newMode WorkMode
return void

StartCurrentWorkMode() public method

public StartCurrentWorkMode ( ) : void
return void