30 lines
670 B
C#
Executable File
30 lines
670 B
C#
Executable File
using System.IO;
|
|
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Nancy.Owin;
|
|
|
|
namespace Fission.DotNetCore
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
var host = new WebHostBuilder()
|
|
.UseContentRoot(Directory.GetCurrentDirectory())
|
|
.UseKestrel()
|
|
.UseUrls("http://*:8888")
|
|
.UseStartup<Startup>()
|
|
.Build();
|
|
host.Run();
|
|
}
|
|
|
|
|
|
}
|
|
public class Startup
|
|
{
|
|
public void Configure(IApplicationBuilder app)
|
|
{
|
|
app.UseOwin(x => x.UseNancy());
|
|
}
|
|
}
|
|
} |