調整無必要的變數 20250319

This commit is contained in:
allen.yan 2025-03-19 11:44:27 +08:00
parent 1e2983f79e
commit 4dc45d22fd
3 changed files with 5 additions and 5 deletions

View File

@ -26,10 +26,10 @@ namespace DualScreenDemo
// 服务器类变量 // 服务器类变量
private static SongListManager songListManager; private static SongListManager songListManager;
// 使用完整命名空间来避免歧义 // 使用完整命名空间来避免歧义
public static event ActionString OnDisplayBarrage; //public static event ActionString OnDisplayBarrage;
private static DateTime lastClickTime = DateTime.MinValue; private static DateTime lastClickTime = DateTime.MinValue;
public static string randomFolderPath; // 声明全局变量 public static string randomFolderPath; // 声明全局变量
private static OverlayForm form; //private static OverlayForm form;
private static readonly ConcurrentDictionary<string, byte[]> _fileCache = new ConcurrentDictionary<string, byte[]>(); private static readonly ConcurrentDictionary<string, byte[]> _fileCache = new ConcurrentDictionary<string, byte[]>();
private static readonly SemaphoreSlim _requestThrottle = new SemaphoreSlim(20); // 限制并发请求数 private static readonly SemaphoreSlim _requestThrottle = new SemaphoreSlim(20); // 限制并发请求数
private static readonly CancellationTokenSource _serverCts = new CancellationTokenSource(); private static readonly CancellationTokenSource _serverCts = new CancellationTokenSource();

View File

@ -16,7 +16,7 @@ namespace DualScreenDemo
private TcpListener listener; private TcpListener listener;
private const int Port = 1000; private const int Port = 1000;
private readonly string hostNameSuffix; private readonly string hostNameSuffix;
private bool isProcessingCommand = false; //private bool isProcessingCommand = false;
public TCPServer() public TCPServer()

View File

@ -91,8 +91,8 @@ namespace DualScreenDemo
private IVideoWindow videoWindowPrimary; private IVideoWindow videoWindowPrimary;
private IMediaEventEx mediaEventExPrimary; private IMediaEventEx mediaEventExPrimary;
private IMediaEventEx mediaEventExSecondary; private IMediaEventEx mediaEventExSecondary;
private int videoWidth; //private int videoWidth;
private int videoHeight; //private int videoHeight;
private static bool isInitializationComplete = false; private static bool isInitializationComplete = false;
public static OverlayForm overlayForm; public static OverlayForm overlayForm;