|
|
@@ -7,6 +7,7 @@ using Newtonsoft.Json; |
|
|
|
using System; |
|
|
|
using System.Collections.Concurrent; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Diagnostics; |
|
|
|
using System.Drawing; |
|
|
|
using System.IO; |
|
|
|
using System.Linq; |
|
|
@@ -161,6 +162,25 @@ namespace BPASmartClient.ScreenLib |
|
|
|
MessageLog.GetInstance.ShowEx($"{Name}:MQTT或者Redis启动时,连接失败,原因:{ex.Message}"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// |
|
|
|
/// </summary> |
|
|
|
public void StartServer() |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
string path = System.Configuration.ConfigurationManager.AppSettings["StartServer"].ToString(); |
|
|
|
if (System.IO.File.Exists(path)) |
|
|
|
{ |
|
|
|
Process.Start(path); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 停止服务 |
|
|
|
/// </summary> |
|
|
|