Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8a405eae29 | ||
|
|
bbdf6cf75f |
@@ -24,7 +24,10 @@ namespace ForwardingServerUI.Class
|
|||||||
public required string SERRVERPASWORD { get; set; }
|
public required string SERRVERPASWORD { get; set; }
|
||||||
public required string MachineVer { get; set; }
|
public required string MachineVer { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static Timer? _timer;
|
||||||
public static TcpService service = new TcpService();
|
public static TcpService service = new TcpService();
|
||||||
|
|
||||||
public static async Task TcpMain()
|
public static async Task TcpMain()
|
||||||
{
|
{
|
||||||
//TcpService service = new TcpService();
|
//TcpService service = new TcpService();
|
||||||
@@ -157,7 +160,8 @@ namespace ForwardingServerUI.Class
|
|||||||
|
|
||||||
Console.WriteLine("TcpServer:Run");
|
Console.WriteLine("TcpServer:Run");
|
||||||
|
|
||||||
Timer timer = new Timer(TimerCallback, null, TimeSpan.FromSeconds(90), TimeSpan.FromSeconds(30));
|
//启动检查循环定时器
|
||||||
|
_timer = new Timer(TimerCallback, null, TimeSpan.FromSeconds(90), TimeSpan.FromSeconds(30));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static async void TimerCallback(object? state)
|
private static async void TimerCallback(object? state)
|
||||||
|
|||||||
Reference in new issue
Block a user