添加报警窗口
出库流程调试、优化
This commit is contained in:
@ -12,6 +12,8 @@ namespace WCS.BLL.Manager
|
||||
public static class WebSoceketManager
|
||||
{
|
||||
public static HttpService service;
|
||||
|
||||
public static object flag = new object();
|
||||
public static void InitWebSocket()
|
||||
{
|
||||
service = new HttpService();
|
||||
@ -40,7 +42,10 @@ namespace WCS.BLL.Manager
|
||||
var clients = service.GetClients().Where(t => t.IP == IpAddress).ToList();
|
||||
foreach (var client in clients)
|
||||
{
|
||||
client.WebSocket.SendAsync(Message);
|
||||
lock (client)
|
||||
{
|
||||
client.WebSocket.Send(Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
Reference in New Issue
Block a user