예제 #1
0
        public RpcApp()
        {
            Server = new MockServerApp();
            Server.RpcServer.WebHost.Start();
            var port = Server.RpcServer.ServerPort;

            HttpClient      = JsonRpcClient.Create(new Uri($"http://{IPAddress.Loopback}:{port}"), ArbitraryDefaults.DEFAULT_GAS_LIMIT, ArbitraryDefaults.DEFAULT_GAS_PRICE);
            WebSocketClient = JsonRpcClient.Create(new Uri($"ws://{IPAddress.Loopback}:{port}"), ArbitraryDefaults.DEFAULT_GAS_LIMIT, ArbitraryDefaults.DEFAULT_GAS_PRICE);
        }
예제 #2
0
 public ClientToServerIntegration(RpcApp rpcApp)
 {
     Server          = rpcApp.Server;
     HttpClient      = rpcApp.HttpClient;
     WebSocketClient = rpcApp.WebSocketClient;
 }