-
Notifications
You must be signed in to change notification settings - Fork 4
/
Program.fs
31 lines (29 loc) · 1.05 KB
/
Program.fs
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
namespace NancyCore.Web
module Main =
open System.IO
open Microsoft.AspNetCore.Hosting
open Microsoft.Extensions.Hosting
open Microsoft.Extensions.Logging
open NancyCore.Web.Config
[<EntryPoint>]
let main argv =
let host =
Host
.CreateDefaultBuilder(argv)
.ConfigureWebHostDefaults(fun wb ->
wb
.UseKestrel(fun k ->
k.AllowSynchronousIO <- true
)
.UseContentRoot(Directory.GetCurrentDirectory())
.UseStartup<Startup>()
.ConfigureLogging(fun _ lg ->
lg
.AddDebug()
.AddConsole() |> ignore
) |> ignore
()
)
.Build()
host.Run()
0