74 lines
1.9 KiB
C#
74 lines
1.9 KiB
C#
namespace DeviceAgent;
|
|
|
|
public class AgentConfig
|
|
{
|
|
/// <summary>
|
|
/// 服务器地址
|
|
/// </summary>
|
|
public string ServerUrl { get; set; } = "http://localhost:5000";
|
|
|
|
/// <summary>
|
|
/// 上报间隔(秒)
|
|
/// </summary>
|
|
public int ReportIntervalSeconds { get; set; } = 60;
|
|
|
|
/// <summary>
|
|
/// Agent 密钥(用于身份验证)
|
|
/// </summary>
|
|
public string AgentKey { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// 是否启用屏幕截图(定时上传)
|
|
/// </summary>
|
|
public bool ScreenCaptureEnabled { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// 屏幕截图间隔(秒)
|
|
/// </summary>
|
|
public int ScreenCaptureIntervalSeconds { get; set; } = 5;
|
|
|
|
/// <summary>
|
|
/// 屏幕截图质量 (1-100)
|
|
/// </summary>
|
|
public int ScreenCaptureQuality { get; set; } = 50;
|
|
|
|
/// <summary>
|
|
/// 屏幕截图最大宽度(像素)
|
|
/// </summary>
|
|
public int ScreenCaptureMaxWidth { get; set; } = 800;
|
|
|
|
// ========== 实时屏幕流配置 ==========
|
|
|
|
/// <summary>
|
|
/// 是否启用实时屏幕流
|
|
/// </summary>
|
|
public bool ScreenStreamEnabled { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// 屏幕流 WebSocket 端口
|
|
/// </summary>
|
|
public int ScreenStreamPort { get; set; } = 9100;
|
|
|
|
/// <summary>
|
|
/// 屏幕流帧率 (FPS)
|
|
/// </summary>
|
|
public int ScreenStreamFps { get; set; } = 10;
|
|
|
|
/// <summary>
|
|
/// 屏幕流质量 (1-100)
|
|
/// </summary>
|
|
public int ScreenStreamQuality { get; set; } = 60;
|
|
|
|
/// <summary>
|
|
/// 屏幕流最大宽度(像素)
|
|
/// </summary>
|
|
public int ScreenStreamMaxWidth { get; set; } = 1280;
|
|
|
|
// ========== 远程桌面配置 ==========
|
|
|
|
/// <summary>
|
|
/// 是否在启动时自动开启远程桌面
|
|
/// </summary>
|
|
public bool EnableRemoteDesktopOnStart { get; set; } = true;
|
|
}
|