C# Class SlavaGu.ConsoleAppLauncher.Samples.SysInfo

Afficher le fichier Open project: slavagu/ConsoleAppLauncher Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Get Windows firewall rule
public static GetFirewallRule ( string ruleName ) : string
ruleName string
Résultat string

GetIpAddress() public static méthode

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

GetWindowsVersion() public static méthode

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

PingUrl() public static méthode

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
Résultat void