using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace Anno.Plugs.DLockService
{
public class LockInfo
{
public string Owner { get; set; }
public string Key { get; set; }
///
/// 进入时间
///
public DateTime EnterTime { get; set; } = DateTime.Now;
public int Time { get; set; }
public AutoResetEvent ResetEvent { get; set; } = new AutoResetEvent(true);
///
/// 是否已经超时
///
public bool IsTimeOut => (DateTime.Now-EnterTime).TotalMilliseconds > Time;
public ProcessType Type { get; set; }
}
}