using Hh.Mes.POJO.Entity; using System; using System.Collections.Concurrent; using System.Collections.Generic; namespace Hh.Mes.Api.Common { /// <summary> /// 接口日志队列 /// </summary> public class QueueInterLog { private static ConcurrentQueue<sys_interface_log> _Log; private static readonly object LockHelper = new object(); private QueueInterLog() { } public static ConcurrentQueue<sys_interface_log> GetInstance { get { if (_Log == null) { lock (LockHelper) { if (_Log == null) { _Log = new ConcurrentQueue<sys_interface_log>(); } } } return _Log; } } } }