might of fixed console.keypress

This commit is contained in:
Mike Nolan 2022-01-13 17:57:34 -06:00
parent 019949a3ce
commit 7f9182879f
8 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ namespace TYTD
Route.Add("/extensions.html", (HttpAction)Extensions);
Route.Add("/{Path}", (HttpAction)RootPath);
Route.Add("/{Path}",(HttpAction)UploadFilePut,"PUT");
Console.CancelKeyPress += (sender, e) => { ApiLoader.Dispose();var date = DateTime.Now.ToString("yyyyMMdd_HHmmss");File.WriteAllText(Path.Combine("config","queues-close",$"{date}.json"), Downloader.GetQueue()); e.Cancel = false; };
Console.CancelKeyPress += (sender, e) => { ApiLoader.Dispose();var date = DateTime.Now.ToString("yyyyMMdd_HHmmss");Directory.CreateDirectory(Path.Combine("config","queues-close")); File.WriteAllText(Path.Combine("config","queues-close",$"{date}.json"), Downloader.GetQueue()); e.Cancel = false; };
Console.WriteLine("Almost Ready To Listen");

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.