Show / Hide Table of Contents

    Interface ICommandContext

    Namespace: Catalyst.Abstractions.Cli.Commands
    Assembly: Catalyst.Abstractions.dll
    Syntax
    public interface ICommandContext

    Properties

    | Improve this Doc View Source

    CertificateStore

    Gets the certificate store.

    Declaration
    ICertificateStore CertificateStore { get; }
    Property Value
    Type Description
    ICertificateStore

    The certificate store.

    | Improve this Doc View Source

    PeerId

    Gets the peer identifier.

    Declaration
    PeerId PeerId { get; }
    Property Value
    Type Description
    PeerId

    The peer identifier.

    | Improve this Doc View Source

    RpcClientFactory

    Gets the node RPC client factory.

    Declaration
    IRpcClientFactory RpcClientFactory { get; }
    Property Value
    Type Description
    IRpcClientFactory

    The node RPC client factory.

    | Improve this Doc View Source

    SocketClientRegistry

    Gets the socket client registry.

    Declaration
    ISocketClientRegistry<IRpcClient> SocketClientRegistry { get; }
    Property Value
    Type Description
    ISocketClientRegistry<IRpcClient>

    The socket client registry.

    | Improve this Doc View Source

    UserOutput

    Gets the user output.

    Declaration
    IUserOutput UserOutput { get; }
    Property Value
    Type Description
    IUserOutput

    The user output.

    Methods

    | Improve this Doc View Source

    GetConnectedNode(String)

    Gets the connected node.

    Declaration
    IRpcClient GetConnectedNode(string nodeId)
    Parameters
    Type Name Description
    System.String nodeId

    The node identifier located in configuration.

    Returns
    Type Description
    IRpcClient
    | Improve this Doc View Source

    GetNodeConfig(String)

    Gets the node configuration.

    Declaration
    IRpcClientConfig GetNodeConfig(string nodeId)
    Parameters
    Type Name Description
    System.String nodeId

    The node identifier located in configuration.

    Returns
    Type Description
    IRpcClientConfig
    | Improve this Doc View Source

    IsSocketChannelActive(IRpcClient)

    Determines whether [is socket channel active] [the specified node].

    Declaration
    bool IsSocketChannelActive(IRpcClient node)
    Parameters
    Type Name Description
    IRpcClient node

    A IRpcNode object including node required information.

    Returns
    Type Description
    System.Boolean

    true if [is socket channel active] [the specified node]; otherwise, false A "Channel inactive ..." message is returned to the console.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network