From 021356bf27a6bb1a1d9bd847b40e47420d7ca23e Mon Sep 17 00:00:00 2001 From: BrennanConroy Date: Fri, 13 Apr 2018 14:57:37 -0700 Subject: [PATCH] Internalize classes in Http.Connections (#2013) --- .../Internal/ConnectionLogScope.cs | 2 +- .../Internal/NegotiateProtocol.cs | 1 - .../Internal/AuthorizeHelper.cs | 3 +-- .../Internal/ConnectionLogScope.cs | 2 +- .../Internal/Transports/ServerSentEventsMessageFormatter.cs | 2 -- 5 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Microsoft.AspNetCore.Http.Connections.Client/Internal/ConnectionLogScope.cs b/src/Microsoft.AspNetCore.Http.Connections.Client/Internal/ConnectionLogScope.cs index 53f2d13300..855531498b 100644 --- a/src/Microsoft.AspNetCore.Http.Connections.Client/Internal/ConnectionLogScope.cs +++ b/src/Microsoft.AspNetCore.Http.Connections.Client/Internal/ConnectionLogScope.cs @@ -8,7 +8,7 @@ using System.Globalization; namespace Microsoft.AspNetCore.Http.Connections.Client.Internal { - public class ConnectionLogScope : IReadOnlyList> + internal class ConnectionLogScope : IReadOnlyList> { private string _cachedToString; private string _connectionId; diff --git a/src/Microsoft.AspNetCore.Http.Connections.Common/Internal/NegotiateProtocol.cs b/src/Microsoft.AspNetCore.Http.Connections.Common/Internal/NegotiateProtocol.cs index 71a26f3984..5822113ca5 100644 --- a/src/Microsoft.AspNetCore.Http.Connections.Common/Internal/NegotiateProtocol.cs +++ b/src/Microsoft.AspNetCore.Http.Connections.Common/Internal/NegotiateProtocol.cs @@ -5,7 +5,6 @@ using System; using System.Buffers; using System.Collections.Generic; using System.IO; -using System.Text; using Microsoft.AspNetCore.Internal; using Newtonsoft.Json; diff --git a/src/Microsoft.AspNetCore.Http.Connections/Internal/AuthorizeHelper.cs b/src/Microsoft.AspNetCore.Http.Connections/Internal/AuthorizeHelper.cs index f52b65789a..7b48314ef0 100644 --- a/src/Microsoft.AspNetCore.Http.Connections/Internal/AuthorizeHelper.cs +++ b/src/Microsoft.AspNetCore.Http.Connections/Internal/AuthorizeHelper.cs @@ -6,12 +6,11 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization.Policy; -using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; namespace Microsoft.AspNetCore.Http.Connections.Internal { - public static class AuthorizeHelper + internal static class AuthorizeHelper { public static async Task AuthorizeAsync(HttpContext context, IList policies) { diff --git a/src/Microsoft.AspNetCore.Http.Connections/Internal/ConnectionLogScope.cs b/src/Microsoft.AspNetCore.Http.Connections/Internal/ConnectionLogScope.cs index a7d30525dc..f31a73014d 100644 --- a/src/Microsoft.AspNetCore.Http.Connections/Internal/ConnectionLogScope.cs +++ b/src/Microsoft.AspNetCore.Http.Connections/Internal/ConnectionLogScope.cs @@ -8,7 +8,7 @@ using System.Globalization; namespace Microsoft.AspNetCore.Http.Connections.Internal { - public class ConnectionLogScope : IReadOnlyList> + internal class ConnectionLogScope : IReadOnlyList> { private string _cachedToString; diff --git a/src/Microsoft.AspNetCore.Http.Connections/Internal/Transports/ServerSentEventsMessageFormatter.cs b/src/Microsoft.AspNetCore.Http.Connections/Internal/Transports/ServerSentEventsMessageFormatter.cs index 970a88b8c4..0122344e0e 100644 --- a/src/Microsoft.AspNetCore.Http.Connections/Internal/Transports/ServerSentEventsMessageFormatter.cs +++ b/src/Microsoft.AspNetCore.Http.Connections/Internal/Transports/ServerSentEventsMessageFormatter.cs @@ -3,9 +3,7 @@ using System; using System.Buffers; -using System.Diagnostics; using System.IO; -using System.Runtime.InteropServices; using System.Threading.Tasks; namespace Microsoft.AspNetCore.Http.Connections.Internal