Skip to content

Commit

Permalink
feat: listen ctrl+c at the very beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
RayWangQvQ committed May 12, 2024
1 parent 6906890 commit f50eec7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 2.1.1
- Feature: listen ctrl+c at the very beginning
## 2.1.0
- Feature[#691]: 重构并优化基于qinglong的部署方式,尝试解决偶发的安装失败的问题
- Feature[#670]: 新增针对App的AppUserAgent配置项,用于解决大会员大积分异常问题
Expand Down
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<Authors>Ray</Authors>
<Version>2.1.0</Version>
<Version>2.1.1</Version>
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
</PropertyGroup>
</Project>
7 changes: 7 additions & 0 deletions src/Ray.BiliBiliTool.Console/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
Expand All @@ -18,6 +19,12 @@ public class Program
{
public static async Task<int> Main(string[] args)
{
System.Console.CancelKeyPress += (sender, eventArgs) =>
{
eventArgs.Cancel = true;
Environment.Exit(0);
};

PrintLogo();

IHost host = CreateHost(args);
Expand Down

0 comments on commit f50eec7

Please sign in to comment.