C# Class Akka.Remote.TestKit.CommandLine

Command line argument parser for individual node tests during a MultiNodeSpec. Parses arguments from Environment.GetCommandLineArgs using the same conventions as canonical Akka. For example (from the Akka.NodeTestRunner source): var nodeIndex = CommandLine.GetInt32("multinode.index"); var assemblyName = CommandLine.GetProperty("multinode.test-assembly"); var typeName = CommandLine.GetProperty("multinode.test-class"); var testName = CommandLine.GetProperty("multinode.test-method");
Afficher le fichier Open project: rogeralsing/akka.net

Méthodes publiques

Méthode Description
GetInt32 ( string key ) : int
GetInt32OrDefault ( string key, int defaultInt ) : int
GetProperty ( string key ) : string
GetPropertyOrDefault ( string key, string defaultStr ) : string

Method Details

GetInt32() public static méthode

public static GetInt32 ( string key ) : int
key string
Résultat int

GetInt32OrDefault() public static méthode

public static GetInt32OrDefault ( string key, int defaultInt ) : int
key string
defaultInt int
Résultat int

GetProperty() public static méthode

public static GetProperty ( string key ) : string
key string
Résultat string

GetPropertyOrDefault() public static méthode

public static GetPropertyOrDefault ( string key, string defaultStr ) : string
key string
defaultStr string
Résultat string