-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
37 lines (34 loc) · 796 Bytes
/
Program.cs
File metadata and controls
37 lines (34 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Runtime.InteropServices;
using System.Diagnostics;
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;
using System.Text.Json;
using System.IO;
using System.IO.Compression;
namespace Lamp
{
public class Program
{
static async Task Main(string[] args)
{
bool finished = false;
try
{
finished = await new Lamp(args).Execute();
}
catch(Exception ex)
{
Console.WriteLine(ex.ToString());
}
while(!finished)
{
await Task.Delay(1000);
}
Environment.Exit(0);
}
}
}