C# Class SlavaGu.ConsoleAppLauncher.Samples.SysInfo

ファイルを表示 Open project: slavagu/ConsoleAppLauncher Class Usage Examples

Public Methods

Method Description
GetFirewallRule ( string ruleName ) : string

Get Windows firewall rule

GetIpAddress ( ) : string

Run ipconfig.exe and return matching line.

GetWindowsVersion ( ) : string

Run simplest shell command and return its output.

PingUrl ( string url, Action replyHandler ) : void

Run ping.exe asynchronously and return roundtrip times back to the caller in a callback

Method Details

GetFirewallRule() public static method

Get Windows firewall rule
public static GetFirewallRule ( string ruleName ) : string
ruleName string
return string

GetIpAddress() public static method

Run ipconfig.exe and return matching line.
public static GetIpAddress ( ) : string
return string

GetWindowsVersion() public static method

Run simplest shell command and return its output.
public static GetWindowsVersion ( ) : string
return string

PingUrl() public static method

Run ping.exe asynchronously and return roundtrip times back to the caller in a callback
public static PingUrl ( string url, Action replyHandler ) : void
url string
replyHandler Action
return void