-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.vb
24 lines (21 loc) · 909 Bytes
/
Program.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Imports System
Imports Microsoft.AspNetCore.Hosting
Imports Microsoft.Extensions.Hosting
Imports Microsoft.Extensions.Logging
Module Program
Public Sub Main(args As String())
CreateHostBuilder(args).Build().Run()
End Sub
Public Function CreateHostBuilder(ByVal args As String()) As IHostBuilder
Return Host.
CreateDefaultBuilder().
ConfigureLogging(Sub(hostingContext, logging)
logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging"))
logging.AddConsole()
logging.AddDebug()
End Sub).
ConfigureWebHostDefaults(Function(webBuilder)
Return webBuilder.UseStartup(Of Startup)()
End Function)
End Function
End Module