QueueData.cs
923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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;
}
}
}
}