public static UDPSocketCommonQueryAnswerModel GetAnswerModel(string id, int status)
        {
            UDPSocketCommonQueryAnswerModel model = (UDPSocketCommonQueryAnswerModel)UDPSocketCommonQueryAnswerCache.GetAnswer(id);

            if (model != null)
            {
                if (model.Status == status)
                {
                    return(model);
                }
                else
                {
                    return(null);
                }
            }
            else
            {
                return(null);
            }
        }
 /// <summary>
 /// 获取应答对象
 /// </summary>
 /// <param name="sn"></param>
 public static UDPSocketCommonQueryAnswerModel GetAnswerModel(string id)
 {
     return((UDPSocketCommonQueryAnswerModel)UDPSocketCommonQueryAnswerCache.GetAnswer(id));
 }
 public static void AddAnswer(string id, UDPSocketCommonQueryAnswerModel answerModel)
 {
     UDPSocketCommonQueryAnswerCache.Remove(id);
     UDPSocketCommonQueryAnswerCache.AddAnswer(id, answerModel);
 }