-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSystemWebWebHost.cs
More file actions
29 lines (27 loc) · 942 Bytes
/
SystemWebWebHost.cs
File metadata and controls
29 lines (27 loc) · 942 Bytes
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
using System.Web;
using Microsoft.AspNet.Hosting.SystemWeb;
using Microsoft.AspNet.Hosting.SystemWeb.DependencyInjection;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
namespace Microsoft.AspNet.Hosting
{
/// <summary>
/// Provides convenience methods for creating instances of <see cref="IWebHost"/> and <see cref="IWebHostBuilder"/> with pre-configured defaults.
/// </summary>
public static class SystemWebWebHost
{
internal static void ConfigureSystemWebWebDefaults(IWebHostBuilder builder)
{
#if DEBUG
builder.ConfigureAppConfiguration((ctx, cb) =>
{
});
#endif
builder.ConfigureServices((hostingContext, services) =>
{
services.TryAddSingleton<IWebObjectActivator, WebObjectActivator>();
});
}
}
}