Пример #1
0
 /// <summary>
 /// 返回状态信息
 /// </summary>
 /// <param name="status"></param>
 /// <param name="text"></param>
 /// <param name="json"></param>
 private void ResponseData(int status, string text, bool json = false)
 {
     SatelliteInstance.Close();
     TerminalInstance.Close();
     ResponseJson(string.Format("{0}\"State\":{1},\"Type\":\"{2}\",\"Data\":{3}{4}{5}{6}",
                                "{", status, type, (json ? "" : "\""), text, (json ? "" : "\""), "}"));
 }
Пример #2
0
 /// <summary>
 /// 关闭bll
 /// </summary>
 private void CloseBlls()
 {
     EquipmentInstance.Close();
     TerminalInstance.Close();
 }