Add an example usage

This commit is contained in:
Smaug123
2021-02-17 18:18:01 +00:00
parent ac59bb21dc
commit 577e113bc3
7 changed files with 246 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
namespace SampleApplication
open System
open System.Collections.Generic
open System.IO
open System.Linq
open System.Threading.Tasks
open Microsoft.AspNetCore
open Microsoft.AspNetCore.Hosting
open Microsoft.Extensions.Configuration
open Microsoft.Extensions.Hosting
open Microsoft.Extensions.Logging
module Program =
let createHostBuilder args =
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(fun webBuilder ->
webBuilder.UseStartup<Startup>()
|> ignore
)
[<EntryPoint>]
let main args =
createHostBuilder(args).Build().Run()
0 // Exit code