Interface ICommandContext
Namespace: Catalyst.Abstractions.Cli.Commands
Assembly: Catalyst.Abstractions.dll
Syntax
public interface ICommandContext
Properties
| Improve this Doc View SourceCertificateStore
Gets the certificate store.
Declaration
ICertificateStore CertificateStore { get; }
Property Value
Type | Description |
---|---|
ICertificateStore | The certificate store. |
PeerId
Gets the peer identifier.
Declaration
PeerId PeerId { get; }
Property Value
Type | Description |
---|---|
PeerId | The peer identifier. |
RpcClientFactory
Gets the node RPC client factory.
Declaration
IRpcClientFactory RpcClientFactory { get; }
Property Value
Type | Description |
---|---|
IRpcClientFactory | The node RPC client factory. |
SocketClientRegistry
Gets the socket client registry.
Declaration
ISocketClientRegistry<IRpcClient> SocketClientRegistry { get; }
Property Value
Type | Description |
---|---|
ISocketClientRegistry<IRpcClient> | The socket client registry. |
UserOutput
Gets the user output.
Declaration
IUserOutput UserOutput { get; }
Property Value
Type | Description |
---|---|
IUserOutput | The user output. |
Methods
| Improve this Doc View SourceGetConnectedNode(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 |
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 |
IsSocketChannelActive(IRpcClient)
Determines whether [is socket channel active] [the specified node].
Declaration
bool IsSocketChannelActive(IRpcClient node)
Parameters
Type | Name | Description |
---|---|---|
IRpcClient | node | A |
Returns
Type | Description |
---|---|
System.Boolean |
|