29 lines
753 B
C#
29 lines
753 B
C#
using System;
|
|
using System.Collections.Concurrent;
|
|
using WebApi.Models;
|
|
|
|
namespace WebApi.Helpers
|
|
{
|
|
/// <summary>
|
|
/// 全局变量类
|
|
/// </summary>
|
|
public class Gl
|
|
{
|
|
/// <summary>
|
|
/// SQL Server连接状态
|
|
/// </summary>
|
|
public static bool OnLine_Sql { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// AGV连接状态
|
|
/// </summary>
|
|
public static bool OnLine_AGV { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// MQTT连接状态
|
|
/// </summary>
|
|
public static bool OnLine_MQTT { get; set; } = false;
|
|
|
|
public static ConcurrentDictionary<string, TightenTool> TightenList { get; set; } = new ConcurrentDictionary<string, TightenTool>();
|
|
}
|
|
} |