Search Results for

    Show / Hide Table of Contents

    Class CommandLine

    Command line argument parser for individual node tests during a MultiNodeSpec.

    Parses arguments from 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");
    Inheritance
    object
    CommandLine
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Remote.TestKit
    Assembly: Akka.Remote.TestKit.dll
    Syntax
    public static class CommandLine

    Properties

    | Edit this page View Source

    ShowHelp

    Declaration
    public static bool ShowHelp { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    ShowVersion

    Declaration
    public static bool ShowVersion { get; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    GetInt32(string)

    Declaration
    public static int GetInt32(string key)
    Parameters
    Type Name Description
    string key
    Returns
    Type Description
    int
    | Edit this page View Source

    GetInt32OrDefault(string, int)

    Declaration
    public static int GetInt32OrDefault(string key, int defaultInt)
    Parameters
    Type Name Description
    string key
    int defaultInt
    Returns
    Type Description
    int
    | Edit this page View Source

    GetProperty(string)

    Declaration
    public static string GetProperty(string key)
    Parameters
    Type Name Description
    string key
    Returns
    Type Description
    string
    | Edit this page View Source

    GetPropertyOrDefault(string, string)

    Declaration
    public static string GetPropertyOrDefault(string key, string defaultStr)
    Parameters
    Type Name Description
    string key
    string defaultStr
    Returns
    Type Description
    string
    | Edit this page View Source

    Initialize(string[])

    Declaration
    public static void Initialize(string[] args)
    Parameters
    Type Name Description
    string[] args
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET