public void CheckConnection() { if (_autoReconnect == false) { return; } if (_isManualClosed) { return; } if (_rpcServer.ServerState != -1) { return; } try { _rpcServer.Close(); } catch { } _rpcServer = new RpcServer(); _rpcServer.Bind(ServerIP, ServerPort); _rpcServer.MessageProcessor = MessageProcessor; _rpcServer.Start(); }
public KeepAliveRpcServer() { _rpcServer = new RpcServer(); }