-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathStartup.vb
33 lines (24 loc) · 981 Bytes
/
Startup.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
25
26
27
28
29
30
31
32
33
Imports Microsoft.AspNetCore.Builder
Imports Microsoft.AspNetCore.Hosting
Imports Microsoft.Extensions.Configuration
Imports Microsoft.Extensions.DependencyInjection
Imports Microsoft.Extensions.Hosting
Namespace WebHookVB
Public Class Startup
Public Sub New(ByVal configuration As IConfiguration)
Me.Configuration = configuration
End Sub
Public ReadOnly Property Configuration As IConfiguration
Public Sub ConfigureServices(ByVal services As IServiceCollection)
services.AddControllers()
End Sub
Public Sub Configure(ByVal app As IApplicationBuilder, ByVal env As IWebHostEnvironment)
If env.IsDevelopment() Then
End If
app.UseHttpsRedirection()
app.UseRouting()
app.UseAuthorization()
app.UseEndpoints(Sub(endpoints) endpoints.MapControllers())
End Sub
End Class
End Namespace