添加项目文件。
This commit is contained in:
34
MoviconHub.App/Models/WebSocketConnectEventArgs.cs
Normal file
34
MoviconHub.App/Models/WebSocketConnectEventArgs.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MoviconHub.App.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// WebSocket连接事件参数
|
||||
/// </summary>
|
||||
public class WebSocketConnectEventArgs : EventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// 服务器地址
|
||||
/// </summary>
|
||||
public string ServerAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务器端口
|
||||
/// </summary>
|
||||
public int ServerPort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否是重新连接
|
||||
/// </summary>
|
||||
public bool IsReconnection { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 连接时间
|
||||
/// </summary>
|
||||
public DateTime ConnectTime { get; set; } = DateTime.Now;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user