Skip to content

Commit b94634b

Browse files
committed
Merge pull request #1 from aspnet/dev
Update with recent changes from aspnet/Hosting
2 parents e95472e + 66b98e2 commit b94634b

File tree

9 files changed

+6
-28
lines changed

9 files changed

+6
-28
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System.Threading;
5-
using Microsoft.Framework.Runtime;
65

76
namespace Microsoft.AspNet.Hosting
87
{
98
/// <summary>
109
/// Allows consumers to perform cleanup during a graceful shutdown.
1110
/// </summary>
12-
[AssemblyNeutral]
1311
public interface IApplicationLifetime
1412
{
1513
/// <summary>

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
namespace Microsoft.AspNet.Hosting
77
{
8-
[AssemblyNeutral]
98
public interface IConfigureHostingEnvironment
109
{
1110
void Configure(IHostingEnvironment hostingEnv);

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using Microsoft.AspNet.FileProviders;
5-
using Microsoft.Framework.Runtime;
65

76
namespace Microsoft.AspNet.Hosting
87
{
9-
[AssemblyNeutral]
108
public interface IHostingEnvironment
119
{
1210
string EnvironmentName { get; set; }

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55
using System.Threading.Tasks;
66
using Microsoft.AspNet.Builder;
77
using Microsoft.Framework.ConfigurationModel;
8-
using Microsoft.Framework.Runtime;
98

109
namespace Microsoft.AspNet.Hosting.Server
1110
{
12-
[AssemblyNeutral]
1311
public interface IServerFactory
1412
{
1513
IServerInformation Initialize(IConfiguration configuration);

src/Microsoft.AspNet.Hosting.Interfaces/project.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"dependencies": {
44
"Microsoft.AspNet.Http": "1.0.0-*",
55
"Microsoft.AspNet.FileProviders.Interfaces": "1.0.0-*",
6-
"Microsoft.Framework.Runtime.Interfaces": "1.0.0-*",
76
"Microsoft.Framework.ConfigurationModel": "1.0.0-*"
87
},
98

src/Microsoft.AspNet.Hosting/HostingServices.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
using System.Linq;
77
using Microsoft.Framework.ConfigurationModel;
88
using Microsoft.Framework.DependencyInjection;
9-
using Microsoft.Framework.DependencyInjection.ServiceLookup;
109
using Microsoft.Framework.Logging;
10+
using Microsoft.Framework.Runtime;
1111
using Microsoft.Framework.Runtime.Infrastructure;
1212

1313
namespace Microsoft.AspNet.Hosting

src/Microsoft.AspNet.Hosting/IServiceManifest.cs

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

src/Microsoft.AspNet.Hosting/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "ASP.NET 5 core hosting infrastructure and startup logic for web applications.",
44
"dependencies": {
55
"Microsoft.AspNet.Hosting.Interfaces": "1.0.0-*",
6+
"Microsoft.Framework.Runtime.Interfaces": "1.0.0-*",
67
"Microsoft.AspNet.FileProviders": "1.0.0-*",
78
"Microsoft.AspNet.Http.Core": "1.0.0-*",
89
"Microsoft.Framework.Logging": "1.0.0-*",

test/Microsoft.AspNet.Hosting.Tests/HostingServicesFacts.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using Microsoft.AspNet.Hosting.Fakes;
77
using Microsoft.Framework.DependencyInjection;
88
using Microsoft.Framework.DependencyInjection.Fallback;
9-
using Microsoft.Framework.DependencyInjection.ServiceLookup;
9+
using Microsoft.Framework.Runtime;
1010
using Xunit;
1111

1212
namespace Microsoft.AspNet.Hosting.Tests
@@ -84,11 +84,12 @@ public void CreateThrowsWithNoManifest()
8484
fallbackServices.AddTransient<IFakeService, FakeService>();
8585

8686
// Act
87-
var exp = Assert.Throws<InvalidOperationException>(() => HostingServices.Create(fallbackServices.BuildServiceProvider()));
87+
var exception = Assert.Throws<InvalidOperationException>(() => HostingServices.Create(fallbackServices.BuildServiceProvider()));
8888

8989

9090
// Assert
91-
Assert.True(exp.Message.Contains("No service for type 'Microsoft.Framework.DependencyInjection.ServiceLookup.IServiceManifest'"));
91+
Assert.Equal($"No service for type '{typeof(IServiceManifest).FullName}' has been registered.",
92+
exception.Message);
9293
}
9394

9495
private class ServiceManifest : IServiceManifest

0 commit comments

Comments
 (0)