might of fixed console.keypress
This commit is contained in:
parent
019949a3ce
commit
7f9182879f
|
@ -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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue