mirror of
https://github.com/Smaug123/pulsing-server
synced 2025-10-10 01:08:41 +00:00
Add an example usage
This commit is contained in:
26
SampleApplication/Program.fs
Normal file
26
SampleApplication/Program.fs
Normal 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
|
Reference in New Issue
Block a user