1 Star 1 Fork 0

cdnsv/hkcamera

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
Program.cs 779 Bytes
Copy Edit Raw Blame History
cdnsv authored 2022-12-06 14:08 . 初始化项目.
using System;
using System.Threading;
namespace FaceCapture
{
class Program
{
private static readonly ManualResetEvent _shutdownBlock = new ManualResetEvent(false);
static void Main(string[] args)
{
AlertManage am = new AlertManage();
am.startListen();
Console.WriteLine("启动监听服务成功");
Console.CancelKeyPress += Conssole_CancelKeyPresss;
AppDomain.CurrentDomain.ProcessExit += (sender, EventArgs) =>
{
_shutdownBlock.WaitOne();
};
}
private static void Conssole_CancelKeyPresss(object sender, ConsoleCancelEventArgs e)
{
e.Cancel = true;
_shutdownBlock.Set();
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ulinlin/hkcamera.git
git@gitee.com:ulinlin/hkcamera.git
ulinlin
hkcamera
hkcamera
master

Search