Skip to content

Commit

Permalink
Merge pull request #25 from cloudtoid/Deadlock
Browse files Browse the repository at this point in the history
using implicit usings
  • Loading branch information
prezaei authored Jan 12, 2025
2 parents c21b996 + d9da9e7 commit 839b6dd
Show file tree
Hide file tree
Showing 17 changed files with 12 additions and 30 deletions.
6 changes: 6 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,10 @@
<EmitCompilerGeneratedFiles>false</EmitCompilerGeneratedFiles>
</PropertyGroup>

<ItemGroup>
<Using Include="Microsoft.Extensions.DependencyInjection" />
<Using Include="Microsoft.Extensions.Logging" />
<Using Include="Microsoft.Extensions.Logging.Abstractions" />
</ItemGroup>

</Project>
3 changes: 0 additions & 3 deletions src/Interprocess.Tests/CircularBufferTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using FluentAssertions;
using Xunit;

namespace Cloudtoid.Interprocess.Tests;

public unsafe class CircularBufferTests
Expand Down
6 changes: 6 additions & 0 deletions src/Interprocess.Tests/Interprocess.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
<ProjectReference Include="..\Interprocess\Interprocess.csproj" />
</ItemGroup>

<ItemGroup>
<Using Include="FluentAssertions" />
<Using Include="Xunit" />
<Using Include="Xunit.Abstractions" />
</ItemGroup>

<ItemGroup>
<None Update="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
Expand Down
7 changes: 0 additions & 7 deletions src/Interprocess.Tests/QueueTests.cs
Original file line number Diff line number Diff line change
@@ -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<UniquePathFixture>
Expand Down
1 change: 0 additions & 1 deletion src/Interprocess.Tests/SemaphoreTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Cloudtoid.Interprocess.Semaphore.Linux;
using Cloudtoid.Interprocess.Semaphore.MacOS;
using FluentAssertions;

namespace Cloudtoid.Interprocess.Tests;

Expand Down
3 changes: 0 additions & 3 deletions src/Interprocess.Tests/Utils/XunitLogger.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 0 additions & 3 deletions src/Interprocess.Tests/Utils/XunitLoggerProvider.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using Microsoft.Extensions.Logging;
using Xunit.Abstractions;

namespace Cloudtoid.Interprocess.Tests;

public class XunitLoggerProvider(ITestOutputHelper testOutputHelper, string? fileName = null) : ILoggerProvider
Expand Down
1 change: 0 additions & 1 deletion src/Interprocess/Log.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Cloudtoid.Interprocess.Memory.Unix;
using Microsoft.Extensions.Logging;

namespace Cloudtoid.Interprocess;

Expand Down
1 change: 0 additions & 1 deletion src/Interprocess/Memory/MemoryFileUnix.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.IO.MemoryMappedFiles;
using Microsoft.Extensions.Logging;

namespace Cloudtoid.Interprocess.Memory.Unix;

Expand Down
1 change: 0 additions & 1 deletion src/Interprocess/Memory/MemoryView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 0 additions & 2 deletions src/Interprocess/Queue/Publisher.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Microsoft.Extensions.Logging;

namespace Cloudtoid.Interprocess;

internal sealed class Publisher : Queue, IPublisher
Expand Down
1 change: 0 additions & 1 deletion src/Interprocess/Queue/Queue.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Runtime.CompilerServices;
using Microsoft.Extensions.Logging;

namespace Cloudtoid.Interprocess;

Expand Down
2 changes: 0 additions & 2 deletions src/Interprocess/Queue/QueueFactory.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using static Cloudtoid.Contract;

namespace Cloudtoid.Interprocess;
Expand Down
2 changes: 0 additions & 2 deletions src/Interprocess/Queue/Subscriber.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Microsoft.Extensions.Logging;

namespace Cloudtoid.Interprocess;

internal sealed class Subscriber : Queue, ISubscriber
Expand Down
1 change: 0 additions & 1 deletion src/Interprocess/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Microsoft.Extensions.DependencyInjection;
using static Cloudtoid.Contract;

namespace Cloudtoid.Interprocess;
Expand Down
1 change: 0 additions & 1 deletion src/Sample/Publisher/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Cloudtoid.Interprocess;
using Microsoft.Extensions.Logging;

namespace Publisher;

Expand Down
1 change: 0 additions & 1 deletion src/Sample/Subscriber/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Cloudtoid.Interprocess;
using Microsoft.Extensions.Logging;

namespace Subscriber;

Expand Down

0 comments on commit 839b6dd

Please sign in to comment.