Skip to content
This repository was archived by the owner on Apr 26, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Nancy.Templates.CSharp.EmptySelfHost
namespace Nancy.Templates.CSharp.EmptySelfHost
{
using System;
using Nancy.Hosting.Self;
Expand All @@ -7,16 +7,15 @@ class Program
{
static void Main(string[] args)
{
var uri =
new Uri("http://localhost:3579");
var uri = new Uri("http://localhost:3579");

using (var host = new NancyHost(uri))
{
host.Start();

Console.WriteLine("Your application is running on " + uri);
Console.WriteLine("Press any [Enter] to close the host.");
Console.ReadLine();
Console.WriteLine("Press [Enter] to close the host.");
Console.ReadLine();
}
}
}
Expand Down