恒石成品库WCS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
847 B

using System;
using System.Collections.Generic;
namespace WcfControlMonitorWebLib
{
/// <summary>
/// 会话
/// </summary>
internal class WebSession
{
/// <summary>
/// 仓库
/// (这个原本是存在 Redis 的,也可以存数据库里;这里存在内存,程序重启后会丢失,导致所有登录的界面过期)
/// </summary>
internal static IDictionary<string, WebSession> Store { get; } = new Dictionary<string, WebSession>();
/// <summary>
/// 值
/// (即用户名)
/// </summary>
internal string Value { get; set; }
/// <summary>
/// 时间戳
/// (每次发生数据交互后会更新为当前时间)
/// </summary>
internal DateTime Timestamp { get; set; }
}
}