Exemplo n.º 1
0
        /// <summary>
        /// NodePing
        /// </summary>
        /// <returns></returns>
        public string NodePing(out string pingDetail)
        {
            NodePing ping = new NodePing();

            ping.hello = string.Empty;
            NodePingResponse pingResp = _requestor.NodePing(ping);

            pingDetail = pingResp.statusDetail ?? string.Empty;
            return(pingResp.nodeStatus.ToString());
        }
Exemplo n.º 2
0
        public void OnNodePing(NodePing ping)
        {
            PacketDecodeCompletedEventArgs e = RouteCenter.CurrentContext.GetToken <PacketDecodeCompletedEventArgs>();

            mNodeManager.Ping(ping, e.Session);
        }