From 7d2b7a5fb8aa71b81bb80c9c606d69e2c1b8bda7 Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Fri, 16 Nov 2018 08:33:57 -0800 Subject: [PATCH] Remove internal types from Logging and Abstractions (#513) --- .../src/AzureAppServicesLoggerFactoryExtensions.cs | 1 - src/Logging/Logging.Testing/src/RetryContext.cs | 4 +--- src/Logging/Logging.Testing/src/TestLoggerFactory.cs | 4 +--- .../Logging.Testing/src/{TestLoggerOfT.cs => TestLoggerT.cs} | 0 src/Logging/Logging.Testing/src/Xunit/LoggedTestRunner.cs | 3 +-- src/Logging/Logging.Testing/test/XunitLoggerProviderTest.cs | 1 - 6 files changed, 3 insertions(+), 10 deletions(-) rename src/Logging/Logging.Testing/src/{TestLoggerOfT.cs => TestLoggerT.cs} (100%) diff --git a/src/Logging/Logging.AzureAppServices/src/AzureAppServicesLoggerFactoryExtensions.cs b/src/Logging/Logging.AzureAppServices/src/AzureAppServicesLoggerFactoryExtensions.cs index cbf9ec7d35..79b486b585 100644 --- a/src/Logging/Logging.AzureAppServices/src/AzureAppServicesLoggerFactoryExtensions.cs +++ b/src/Logging/Logging.AzureAppServices/src/AzureAppServicesLoggerFactoryExtensions.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; diff --git a/src/Logging/Logging.Testing/src/RetryContext.cs b/src/Logging/Logging.Testing/src/RetryContext.cs index 2a774cfd3e..529de656b5 100644 --- a/src/Logging/Logging.Testing/src/RetryContext.cs +++ b/src/Logging/Logging.Testing/src/RetryContext.cs @@ -1,8 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; - namespace Microsoft.Extensions.Logging.Testing { public class RetryContext @@ -15,4 +13,4 @@ namespace Microsoft.Extensions.Logging.Testing internal int CurrentIteration { get; set; } } -} \ No newline at end of file +} diff --git a/src/Logging/Logging.Testing/src/TestLoggerFactory.cs b/src/Logging/Logging.Testing/src/TestLoggerFactory.cs index b0513fed66..7200e254b8 100644 --- a/src/Logging/Logging.Testing/src/TestLoggerFactory.cs +++ b/src/Logging/Logging.Testing/src/TestLoggerFactory.cs @@ -1,8 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; - namespace Microsoft.Extensions.Logging.Testing { public class TestLoggerFactory : ILoggerFactory @@ -29,4 +27,4 @@ namespace Microsoft.Extensions.Logging.Testing { } } -} \ No newline at end of file +} diff --git a/src/Logging/Logging.Testing/src/TestLoggerOfT.cs b/src/Logging/Logging.Testing/src/TestLoggerT.cs similarity index 100% rename from src/Logging/Logging.Testing/src/TestLoggerOfT.cs rename to src/Logging/Logging.Testing/src/TestLoggerT.cs diff --git a/src/Logging/Logging.Testing/src/Xunit/LoggedTestRunner.cs b/src/Logging/Logging.Testing/src/Xunit/LoggedTestRunner.cs index 909ea10a6b..7dc847a113 100644 --- a/src/Logging/Logging.Testing/src/Xunit/LoggedTestRunner.cs +++ b/src/Logging/Logging.Testing/src/Xunit/LoggedTestRunner.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; @@ -9,7 +9,6 @@ using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Testing.xunit; -using Microsoft.Extensions.Logging.Testing; using Xunit.Abstractions; using Xunit.Sdk; diff --git a/src/Logging/Logging.Testing/test/XunitLoggerProviderTest.cs b/src/Logging/Logging.Testing/test/XunitLoggerProviderTest.cs index 9720e15a09..c991073b4a 100644 --- a/src/Logging/Logging.Testing/test/XunitLoggerProviderTest.cs +++ b/src/Logging/Logging.Testing/test/XunitLoggerProviderTest.cs @@ -3,7 +3,6 @@ using System; using System.Text.RegularExpressions; -using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging.Test; using Xunit;