Class RpcClient
This class provides a command line interface (CLI) application to connect to Catalyst Node. Through the CLI the node operator will be able to connect to any number of running nodes and run commands.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Catalyst.Core.Modules.Rpc.Client
Assembly: Catalyst.Core.Modules.Rpc.Client.dll
Syntax
public sealed class RpcClient : TcpClient, ISocket, ISocketClient, ITcpClient, IRpcClient
Constructors
| Improve this Doc View SourceRpcClient(ITcpClientChannelFactory, X509Certificate2, IRpcClientConfig, IEnumerable<IRpcResponseObserver>, ITcpClientEventLoopGroupFactory)
Initialize a new instance of RPClient
Declaration
public RpcClient(ITcpClientChannelFactory channelFactory, X509Certificate2 certificate, IRpcClientConfig clientConfig, IEnumerable<IRpcResponseObserver> handlers, ITcpClientEventLoopGroupFactory clientEventLoopGroupFactory)
Parameters
Type | Name | Description |
---|---|---|
ITcpClientChannelFactory | channelFactory | |
System.Security.Cryptography.X509Certificates.X509Certificate2 | certificate | |
IRpcClientConfig | clientConfig | rpc node config |
System.Collections.Generic.IEnumerable<IRpcResponseObserver> | handlers | |
ITcpClientEventLoopGroupFactory | clientEventLoopGroupFactory |
Methods
| Improve this Doc View SourceStartAsync()
Declaration
public override Task StartAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Overrides
| Improve this Doc View SourceSubscribeToResponse<T>(Action<T>)
Declaration
public IDisposable SubscribeToResponse<T>(Action<T> onNext)
where T : IMessage<T>
Parameters
Type | Name | Description |
---|---|---|
System.Action<T> | onNext |
Returns
Type | Description |
---|---|
System.IDisposable |
Type Parameters
Name | Description |
---|---|
T |
Implements
IRpcClient