Skip to content

Commit

Permalink
Hosting rework #2
Browse files Browse the repository at this point in the history
- Merge HostingContext and HostingEngine
- Cleanup usage via builder pattern
  • Loading branch information
HaoK committed Mar 31, 2015
1 parent 78ba6f8 commit 77e2dc2
Show file tree
Hide file tree
Showing 26 changed files with 876 additions and 387 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ namespace Microsoft.AspNet.Hosting
{
public interface IHostingEnvironment
{
// This must be settable!
string EnvironmentName { get; set; }

string WebRootPath { get; }
// This must be settable!
string WebRootPath { get; set; }

IFileProvider WebRootFileProvider { get; }
// This must be settable!
IFileProvider WebRootFileProvider { get; set; }
}
}
4 changes: 0 additions & 4 deletions src/Microsoft.AspNet.Hosting/ApplicationLifetime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ public class ApplicationLifetime : IApplicationLifetime
private readonly CancellationTokenSource _stoppingSource = new CancellationTokenSource();
private readonly CancellationTokenSource _stoppedSource = new CancellationTokenSource();

public ApplicationLifetime()
{
}

/// <summary>
/// Triggered when the application host is performing a graceful shutdown.
/// Request may still be in flight. Shutdown will block until this event completes.
Expand Down
34 changes: 0 additions & 34 deletions src/Microsoft.AspNet.Hosting/HostingContext.cs

This file was deleted.

Loading

0 comments on commit 77e2dc2

Please sign in to comment.