Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit eb2c3a1

Browse files
committed
Rename Microsoft.Runtime.Abstractions to Microsoft.Extensions.PlatformAbstractions
1 parent 2963488 commit eb2c3a1

File tree

10 files changed

+12
-22
lines changed

10 files changed

+12
-22
lines changed

src/Microsoft.AspNet.Server.Kestrel/KestrelEngine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using Microsoft.AspNet.Server.Kestrel.Http;
1010
using Microsoft.AspNet.Server.Kestrel.Infrastructure;
1111
using Microsoft.AspNet.Server.Kestrel.Networking;
12-
using Microsoft.Dnx.Runtime;
12+
using Microsoft.Extensions.PlatformAbstractions;
1313
using Microsoft.Extensions.Logging;
1414

1515
namespace Microsoft.AspNet.Server.Kestrel

src/Microsoft.AspNet.Server.Kestrel/ServerFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
using Microsoft.AspNet.Http.Features;
1010
using Microsoft.AspNet.Server.Features;
1111
using Microsoft.AspNet.Server.Kestrel.Http;
12-
using Microsoft.Dnx.Runtime;
1312
using Microsoft.Extensions.Configuration;
1413
using Microsoft.Extensions.Logging;
14+
using Microsoft.Extensions.PlatformAbstractions;
1515

1616
namespace Microsoft.AspNet.Server.Kestrel
1717
{

src/Microsoft.AspNet.Server.Kestrel/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"dependencies": {
99
"Microsoft.AspNet.Hosting": "1.0.0-*",
10-
"Microsoft.Dnx.Runtime.Abstractions": "1.0.0-*",
10+
"Microsoft.Extensions.PlatformAbstractions": "1.0.0-*",
1111
"Microsoft.Extensions.Logging.Abstractions": "1.0.0-*",
1212
"System.Numerics.Vectors": "4.1.1-beta-*",
1313
"Microsoft.StandardsPolice": {

test/Microsoft.AspNet.Server.KestrelTests/EngineTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
using Microsoft.AspNet.Http.Features;
1111
using Microsoft.AspNet.Server.Kestrel;
1212
using Microsoft.AspNet.Server.Kestrel.Filter;
13-
using Microsoft.Dnx.Runtime;
14-
using Microsoft.Dnx.Runtime.Infrastructure;
13+
using Microsoft.Extensions.PlatformAbstractions;
1514
using Microsoft.Extensions.Logging;
1615
using Xunit;
1716

test/Microsoft.AspNet.Server.KestrelTests/MultipleLoopTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
using Microsoft.AspNet.Server.Kestrel;
77
using Microsoft.AspNet.Server.Kestrel.Infrastructure;
88
using Microsoft.AspNet.Server.Kestrel.Networking;
9-
using Microsoft.Dnx.Runtime;
10-
using Microsoft.Dnx.Runtime.Infrastructure;
9+
using Microsoft.Extensions.PlatformAbstractions;
1110
using Xunit;
1211

1312
namespace Microsoft.AspNet.Server.KestrelTests

test/Microsoft.AspNet.Server.KestrelTests/NetworkingTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
using Microsoft.AspNet.Server.Kestrel;
1010
using Microsoft.AspNet.Server.Kestrel.Infrastructure;
1111
using Microsoft.AspNet.Server.Kestrel.Networking;
12-
using Microsoft.Dnx.Runtime;
13-
using Microsoft.Dnx.Runtime.Infrastructure;
12+
using Microsoft.Extensions.PlatformAbstractions;
1413
using Xunit;
1514

1615
namespace Microsoft.AspNet.Server.KestrelTests

test/Microsoft.AspNet.Server.KestrelTests/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System;
5-
using Microsoft.Dnx.Runtime;
5+
using Microsoft.Extensions.PlatformAbstractions;
66

77
namespace Microsoft.AspNet.Server.KestrelTests
88
{

test/Microsoft.AspNet.Server.KestrelTests/TestServer.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
using System.Threading.Tasks;
66
using Microsoft.AspNet.Server.Kestrel;
77
using Microsoft.AspNet.Server.Kestrel.Http;
8-
using Microsoft.Dnx.Runtime;
9-
using Microsoft.Dnx.Runtime.Infrastructure;
8+
using Microsoft.Extensions.PlatformAbstractions;
109
using Microsoft.AspNet.Http.Features;
1110

1211
namespace Microsoft.AspNet.Server.KestrelTests

tools/Microsoft.AspNet.Server.Kestrel.LibuvCopier/Program.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
using System;
22
using System.IO;
33
using System.Linq;
4-
using Microsoft.Dnx.Runtime;
4+
using Microsoft.Extensions.PlatformAbstractions;
55
using Newtonsoft.Json.Linq;
66

77
namespace Microsoft.AspNet.Server.Kestrel.LibuvCopier
88
{
99
public class Program
1010
{
11-
private readonly IRuntimeEnvironment _runtimeEnv;
12-
13-
public Program(IRuntimeEnvironment runtimeEnv)
14-
{
15-
_runtimeEnv = runtimeEnv;
16-
}
17-
1811
public void Main(string[] args)
1912
{
2013
try
@@ -74,7 +67,8 @@ private string GetHome()
7467
#if DNX451
7568
return Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
7669
#else
77-
if (_runtimeEnv.OperatingSystem == "Windows")
70+
var runtimeEnv = PlatformServices.Default.Runtime;
71+
if (runtimeEnv.OperatingSystem == "Windows")
7872
{
7973
return Environment.GetEnvironmentVariable("USERPROFILE") ??
8074
Environment.GetEnvironmentVariable("HOMEDRIVE") + Environment.GetEnvironmentVariable("HOMEPATH");

tools/Microsoft.AspNet.Server.Kestrel.LibuvCopier/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"licenseUrl": "",
88

99
"dependencies": {
10-
"Microsoft.Dnx.Runtime.Abstractions": "1.0.0-*",
10+
"Microsoft.Extensions.PlatformAbstractions": "1.0.0-*",
1111
"Newtonsoft.Json": "7.0.1"
1212
},
1313

0 commit comments

Comments
 (0)