You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OMS.NET/Common/UserConnect.cs

25 lines
692 B
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System.Net;
namespace OMS.NET.Common
{
public class UserConnect
{
/// <summary>
/// ws连接生成的唯一uuid
/// </summary>
public string ID { get; set; }
/// <summary>
/// ip+port暂时仅用于服务端日志输出和记录
/// </summary>
public IPEndPoint UserEndPoint { get; set; }
/// <summary>
/// 用户邮箱,如果为空则说明此连接未登录
/// </summary>
public string? UserEmail { get; set; }
public UserConnect(string ID, IPEndPoint UserEndPoint)
{
this.ID = ID;
this.UserEndPoint = UserEndPoint;
}
}
}