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

Commit ad9bcb0

Browse files
committed
Move ISession and WebSocketAcceptContext to Microsoft.AspNetCore.Http namespace
- #590
1 parent 10aa15c commit ad9bcb0

File tree

8 files changed

+7
-9
lines changed

8 files changed

+7
-9
lines changed

src/Microsoft.AspNetCore.Http.Extensions/SessionExtensions.cs

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

44
using System.Text;
5-
using Microsoft.AspNetCore.Http.Features;
65

76
namespace Microsoft.AspNetCore.Http
87
{

src/Microsoft.AspNetCore.Http.Features/ISession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Collections.Generic;
55
using System.Threading.Tasks;
66

7-
namespace Microsoft.AspNetCore.Http.Features
7+
namespace Microsoft.AspNetCore.Http
88
{
99
public interface ISession
1010
{

src/Microsoft.AspNetCore.Http.Features/WebSocketAcceptContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4-
namespace Microsoft.AspNetCore.Http.Features
4+
namespace Microsoft.AspNetCore.Http
55
{
66
public class WebSocketAcceptContext
77
{

src/Microsoft.AspNetCore.Owin/OwinEnvironment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
using System.Threading.Tasks;
1717
using Microsoft.AspNetCore.Http;
1818
using Microsoft.AspNetCore.Http.Features;
19-
using Microsoft.AspNetCore.Http.Features.Internal;
2019
using Microsoft.AspNetCore.Http.Features.Authentication;
2120
using Microsoft.AspNetCore.Http.Features.Authentication.Internal;
21+
using Microsoft.AspNetCore.Http.Features.Internal;
2222

2323
namespace Microsoft.AspNetCore.Owin
2424
{

src/Microsoft.AspNetCore.Owin/WebSockets/OwinWebSocketAcceptAdapter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Collections.Generic;
66
using System.Net.WebSockets;
77
using System.Threading.Tasks;
8-
using Microsoft.AspNetCore.Http.Features;
8+
using Microsoft.AspNetCore.Http;
99

1010
namespace Microsoft.AspNetCore.Owin
1111
{

src/Microsoft.AspNetCore.Owin/WebSockets/OwinWebSocketAcceptContext.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.Collections.Generic;
5-
using Microsoft.AspNetCore.Http.Features;
5+
using Microsoft.AspNetCore.Http;
66

77
namespace Microsoft.AspNetCore.Owin
88
{

src/Microsoft.AspNetCore.Owin/WebSockets/WebSocketAcceptAdapter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Net.WebSockets;
77
using System.Threading;
88
using System.Threading.Tasks;
9-
using Microsoft.AspNetCore.Http.Features;
9+
using Microsoft.AspNetCore.Http;
1010

1111
namespace Microsoft.AspNetCore.Owin
1212
{

test/Microsoft.AspNetCore.Http.Tests/DefaultHttpContextTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using System.Reflection;
99
using System.Security.Claims;
1010
using System.Threading.Tasks;
11-
using Microsoft.AspNetCore.Http.Authentication.Internal;
1211
using Microsoft.AspNetCore.Http.Features;
1312
using Microsoft.AspNetCore.Http.Features.Internal;
1413
using Xunit;
@@ -204,7 +203,7 @@ void TestCachedFeaturesAreNull(object value, IFeatureCollection features)
204203

205204
var field = type
206205
.GetFields(BindingFlags.NonPublic | BindingFlags.Instance)
207-
.Single(f =>
206+
.Single(f =>
208207
f.FieldType.GetTypeInfo().IsGenericType &&
209208
f.FieldType.GetGenericTypeDefinition() == typeof(FeatureReferences<>));
210209

0 commit comments

Comments
 (0)