-
Notifications
You must be signed in to change notification settings - Fork 0
/
Global.asax.cs
30 lines (26 loc) · 856 Bytes
/
Global.asax.cs
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
using System;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Hosting.SystemWeb;
using Microsoft.Extensions.Configuration.ConfigurationManager;
using SampleWebApplication.App_Start;
namespace SampleWebApplication
{
public class Global : global::System.Web.HttpApplication
{
void Application_Start(object sender, EventArgs e)
{
SystemWebHosting.ConfigureHost(builder =>
{
// configure host here.
builder
.ConfigureAppConfiguration(((_, configurationBuilder) => configurationBuilder.AddConfigurationManager()));
});
SystemWebHosting.ConfigureWebHost(builder =>
{
// configure web host here.
builder
.UseStartup<Startup>();
});
}
}
}