-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathProgram.cs
More file actions
24 lines (22 loc) · 706 Bytes
/
Copy pathProgram.cs
File metadata and controls
24 lines (22 loc) · 706 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
using System;
using System.Threading;
using Nancy.Hosting.Self;
namespace ReverseCoffee
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Reversing for Coffee!");
McDonald mcdo = new McDonald();
var testCode = mcdo.GetPromoCode(); //Test
if (testCode == -1)
Console.WriteLine("WARNING: testing code faild, please check headers!");
Console.WriteLine("Starting up nancy at 8787");
NancyHost host = new NancyHost(new Uri("http://localhost:8787"));
host.Start();
Console.WriteLine("Nancy is ready");
Thread.Sleep(-1);
}
}
}