From 693c70d4faa33a35460501dc228384661023b91f Mon Sep 17 00:00:00 2001 From: Pedram Rezaei Date: Sun, 12 Jan 2025 15:37:26 -0800 Subject: [PATCH] using implicit usings --- src/Directory.Build.props | 6 ++++++ src/Interprocess.Tests/CircularBufferTests.cs | 3 --- src/Interprocess.Tests/Interprocess.Tests.csproj | 6 ++++++ src/Interprocess.Tests/QueueTests.cs | 7 ------- src/Interprocess.Tests/SemaphoreTests.cs | 1 - src/Interprocess.Tests/Utils/XunitLogger.cs | 3 --- src/Interprocess.Tests/Utils/XunitLoggerProvider.cs | 3 --- src/Interprocess/Log.cs | 1 - src/Interprocess/Memory/MemoryFileUnix.cs | 1 - src/Interprocess/Memory/MemoryView.cs | 1 - src/Interprocess/Queue/Publisher.cs | 2 -- src/Interprocess/Queue/Queue.cs | 1 - src/Interprocess/Queue/QueueFactory.cs | 2 -- src/Interprocess/Queue/Subscriber.cs | 2 -- src/Interprocess/ServiceCollectionExtensions.cs | 1 - src/Sample/Publisher/Program.cs | 1 - src/Sample/Subscriber/Program.cs | 1 - 17 files changed, 12 insertions(+), 30 deletions(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index fad57d8..c6055cd 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -17,4 +17,10 @@ false + + + + + + \ No newline at end of file diff --git a/src/Interprocess.Tests/CircularBufferTests.cs b/src/Interprocess.Tests/CircularBufferTests.cs index f954135..a8df457 100644 --- a/src/Interprocess.Tests/CircularBufferTests.cs +++ b/src/Interprocess.Tests/CircularBufferTests.cs @@ -1,6 +1,3 @@ -using FluentAssertions; -using Xunit; - namespace Cloudtoid.Interprocess.Tests; public unsafe class CircularBufferTests diff --git a/src/Interprocess.Tests/Interprocess.Tests.csproj b/src/Interprocess.Tests/Interprocess.Tests.csproj index edc2ae5..145503c 100644 --- a/src/Interprocess.Tests/Interprocess.Tests.csproj +++ b/src/Interprocess.Tests/Interprocess.Tests.csproj @@ -20,6 +20,12 @@ + + + + + + diff --git a/src/Interprocess.Tests/QueueTests.cs b/src/Interprocess.Tests/QueueTests.cs index 022e8f6..665ffe6 100644 --- a/src/Interprocess.Tests/QueueTests.cs +++ b/src/Interprocess.Tests/QueueTests.cs @@ -1,10 +1,3 @@ -using FluentAssertions; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Logging.Abstractions; -using Xunit; -using Xunit.Abstractions; - namespace Cloudtoid.Interprocess.Tests; public class QueueTests : IClassFixture diff --git a/src/Interprocess.Tests/SemaphoreTests.cs b/src/Interprocess.Tests/SemaphoreTests.cs index 7139a83..327da9c 100644 --- a/src/Interprocess.Tests/SemaphoreTests.cs +++ b/src/Interprocess.Tests/SemaphoreTests.cs @@ -1,6 +1,5 @@ using Cloudtoid.Interprocess.Semaphore.Linux; using Cloudtoid.Interprocess.Semaphore.MacOS; -using FluentAssertions; namespace Cloudtoid.Interprocess.Tests; diff --git a/src/Interprocess.Tests/Utils/XunitLogger.cs b/src/Interprocess.Tests/Utils/XunitLogger.cs index 849167d..2ab208e 100644 --- a/src/Interprocess.Tests/Utils/XunitLogger.cs +++ b/src/Interprocess.Tests/Utils/XunitLogger.cs @@ -1,6 +1,3 @@ -using Microsoft.Extensions.Logging; -using Xunit.Abstractions; - namespace Cloudtoid.Interprocess.Tests; public class XunitLogger(ITestOutputHelper testOutputHelper, string categoryName, string? fileName) : ILogger diff --git a/src/Interprocess.Tests/Utils/XunitLoggerProvider.cs b/src/Interprocess.Tests/Utils/XunitLoggerProvider.cs index cb3b075..a89a24c 100644 --- a/src/Interprocess.Tests/Utils/XunitLoggerProvider.cs +++ b/src/Interprocess.Tests/Utils/XunitLoggerProvider.cs @@ -1,6 +1,3 @@ -using Microsoft.Extensions.Logging; -using Xunit.Abstractions; - namespace Cloudtoid.Interprocess.Tests; public class XunitLoggerProvider(ITestOutputHelper testOutputHelper, string? fileName = null) : ILoggerProvider diff --git a/src/Interprocess/Log.cs b/src/Interprocess/Log.cs index a0c6ecb..2cd7114 100644 --- a/src/Interprocess/Log.cs +++ b/src/Interprocess/Log.cs @@ -1,5 +1,4 @@ using Cloudtoid.Interprocess.Memory.Unix; -using Microsoft.Extensions.Logging; namespace Cloudtoid.Interprocess; diff --git a/src/Interprocess/Memory/MemoryFileUnix.cs b/src/Interprocess/Memory/MemoryFileUnix.cs index 2f8611e..49b7bbc 100644 --- a/src/Interprocess/Memory/MemoryFileUnix.cs +++ b/src/Interprocess/Memory/MemoryFileUnix.cs @@ -1,5 +1,4 @@ using System.IO.MemoryMappedFiles; -using Microsoft.Extensions.Logging; namespace Cloudtoid.Interprocess.Memory.Unix; diff --git a/src/Interprocess/Memory/MemoryView.cs b/src/Interprocess/Memory/MemoryView.cs index 9b2cc2e..a60dc19 100644 --- a/src/Interprocess/Memory/MemoryView.cs +++ b/src/Interprocess/Memory/MemoryView.cs @@ -2,7 +2,6 @@ using System.Runtime.InteropServices; using Cloudtoid.Interprocess.Memory.Unix; using Cloudtoid.Interprocess.Memory.Windows; -using Microsoft.Extensions.Logging; namespace Cloudtoid.Interprocess; diff --git a/src/Interprocess/Queue/Publisher.cs b/src/Interprocess/Queue/Publisher.cs index 51f8eac..8e4de94 100644 --- a/src/Interprocess/Queue/Publisher.cs +++ b/src/Interprocess/Queue/Publisher.cs @@ -1,5 +1,3 @@ -using Microsoft.Extensions.Logging; - namespace Cloudtoid.Interprocess; internal sealed class Publisher : Queue, IPublisher diff --git a/src/Interprocess/Queue/Queue.cs b/src/Interprocess/Queue/Queue.cs index 4490400..88fde75 100644 --- a/src/Interprocess/Queue/Queue.cs +++ b/src/Interprocess/Queue/Queue.cs @@ -1,5 +1,4 @@ using System.Runtime.CompilerServices; -using Microsoft.Extensions.Logging; namespace Cloudtoid.Interprocess; diff --git a/src/Interprocess/Queue/QueueFactory.cs b/src/Interprocess/Queue/QueueFactory.cs index 2e72dda..fee1bd6 100644 --- a/src/Interprocess/Queue/QueueFactory.cs +++ b/src/Interprocess/Queue/QueueFactory.cs @@ -1,5 +1,3 @@ -using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Logging.Abstractions; using static Cloudtoid.Contract; namespace Cloudtoid.Interprocess; diff --git a/src/Interprocess/Queue/Subscriber.cs b/src/Interprocess/Queue/Subscriber.cs index 31bf604..2e4755b 100644 --- a/src/Interprocess/Queue/Subscriber.cs +++ b/src/Interprocess/Queue/Subscriber.cs @@ -1,5 +1,3 @@ -using Microsoft.Extensions.Logging; - namespace Cloudtoid.Interprocess; internal sealed class Subscriber : Queue, ISubscriber diff --git a/src/Interprocess/ServiceCollectionExtensions.cs b/src/Interprocess/ServiceCollectionExtensions.cs index 3e16054..10380ba 100644 --- a/src/Interprocess/ServiceCollectionExtensions.cs +++ b/src/Interprocess/ServiceCollectionExtensions.cs @@ -1,4 +1,3 @@ -using Microsoft.Extensions.DependencyInjection; using static Cloudtoid.Contract; namespace Cloudtoid.Interprocess; diff --git a/src/Sample/Publisher/Program.cs b/src/Sample/Publisher/Program.cs index ce3cfa4..9e4cd7a 100644 --- a/src/Sample/Publisher/Program.cs +++ b/src/Sample/Publisher/Program.cs @@ -1,5 +1,4 @@ using Cloudtoid.Interprocess; -using Microsoft.Extensions.Logging; namespace Publisher; diff --git a/src/Sample/Subscriber/Program.cs b/src/Sample/Subscriber/Program.cs index c3ba64a..9ffaa90 100644 --- a/src/Sample/Subscriber/Program.cs +++ b/src/Sample/Subscriber/Program.cs @@ -1,5 +1,4 @@ using Cloudtoid.Interprocess; -using Microsoft.Extensions.Logging; namespace Subscriber;