private bool CheckUserPass(string tokenString) { //获取消息发送的远程终结点IP和端口 RemoteEndpointMessageProperty endpoint = WcfUtils.GetCurrentWCFClientEndpoint(); string csname = string.Format("SystemWatchPass_{0}", endpoint.Address); string data = SystemParameterHelper.GetSystemParms(csname); bool ret = (data == "") ? false : (data == tokenString); return(ret); }