Skip to content

Commit 77e2dc2

Browse files
committed
Hosting rework #2
- Merge HostingContext and HostingEngine - Cleanup usage via builder pattern
1 parent 78ba6f8 commit 77e2dc2

26 files changed

+876
-387
lines changed

src/Microsoft.AspNet.Hosting.Interfaces/IConfigureHostingEnvironment.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Microsoft.AspNet.Hosting.Interfaces/IHostingEnvironment.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ namespace Microsoft.AspNet.Hosting
77
{
88
public interface IHostingEnvironment
99
{
10+
// This must be settable!
1011
string EnvironmentName { get; set; }
1112

12-
string WebRootPath { get; }
13+
// This must be settable!
14+
string WebRootPath { get; set; }
1315

14-
IFileProvider WebRootFileProvider { get; }
16+
// This must be settable!
17+
IFileProvider WebRootFileProvider { get; set; }
1518
}
1619
}

src/Microsoft.AspNet.Hosting/ApplicationLifetime.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ public class ApplicationLifetime : IApplicationLifetime
1414
private readonly CancellationTokenSource _stoppingSource = new CancellationTokenSource();
1515
private readonly CancellationTokenSource _stoppedSource = new CancellationTokenSource();
1616

17-
public ApplicationLifetime()
18-
{
19-
}
20-
2117
/// <summary>
2218
/// Triggered when the application host is performing a graceful shutdown.
2319
/// Request may still be in flight. Shutdown will block until this event completes.

src/Microsoft.AspNet.Hosting/HostingContext.cs

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)