From 4dc8fbe8456be289747268585edc811679e1b7b5 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Thu, 4 Apr 2024 16:32:04 +0200 Subject: [PATCH] chore: nuget adjustments for packet ID --- .gitea/workflows/release.yaml | 4 ++-- PacketMediator.Samples/PacketMediator.Samples.csproj | 2 +- PacketMediator.Tests/PacketMediator.Tests.csproj | 2 +- Rai.PacketMediator.sln => PacketMediator.sln | 2 +- .../IBidirectionalPacket.cs | 2 +- .../IIncomingPacket.cs | 2 +- .../IOutgoingPacket.cs | 2 +- {Rai.PacketMediator => RaiNote.PacketMediator}/IPacket.cs | 2 +- .../IPacketHandler.cs | 2 +- .../PacketDistributor.cs | 2 +- .../PacketDistributorService.cs | 2 +- .../PacketIdAttribute.cs | 2 +- .../RaiNote.PacketMediator.csproj | 7 +++++++ 13 files changed, 20 insertions(+), 13 deletions(-) rename Rai.PacketMediator.sln => PacketMediator.sln (91%) rename {Rai.PacketMediator => RaiNote.PacketMediator}/IBidirectionalPacket.cs (86%) rename {Rai.PacketMediator => RaiNote.PacketMediator}/IIncomingPacket.cs (89%) rename {Rai.PacketMediator => RaiNote.PacketMediator}/IOutgoingPacket.cs (89%) rename {Rai.PacketMediator => RaiNote.PacketMediator}/IPacket.cs (72%) rename {Rai.PacketMediator => RaiNote.PacketMediator}/IPacketHandler.cs (97%) rename {Rai.PacketMediator => RaiNote.PacketMediator}/PacketDistributor.cs (99%) rename {Rai.PacketMediator => RaiNote.PacketMediator}/PacketDistributorService.cs (97%) rename {Rai.PacketMediator => RaiNote.PacketMediator}/PacketIdAttribute.cs (91%) rename Rai.PacketMediator/Rai.PacketMediator.csproj => RaiNote.PacketMediator/RaiNote.PacketMediator.csproj (78%) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 06b0f3d..ec6eb84 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -29,7 +29,7 @@ jobs: run: dotnet restore - name: Build run: | - dotnet build Rai.PacketMediator.csproj -c Release + dotnet build RaiNote.PacketMediator.csproj -c Release publish: needs: [ build ] @@ -50,7 +50,7 @@ jobs: shell: bash - name: Pack nugets run: | - dotnet build Rai.PacketMediator.csproj -c Release -p:PackageVersion=${{env.VERSION}} + dotnet build RaiNote.PacketMediator.csproj -c Release -p:PackageVersion=${{env.VERSION}} dotnet pack -c Release -p:PackageVersion=${{env.VERSION}} --output . - name: Push to NuGet run: | diff --git a/PacketMediator.Samples/PacketMediator.Samples.csproj b/PacketMediator.Samples/PacketMediator.Samples.csproj index c3cd3bc..7d9bb9b 100644 --- a/PacketMediator.Samples/PacketMediator.Samples.csproj +++ b/PacketMediator.Samples/PacketMediator.Samples.csproj @@ -8,7 +8,7 @@ - + diff --git a/PacketMediator.Tests/PacketMediator.Tests.csproj b/PacketMediator.Tests/PacketMediator.Tests.csproj index 42a86a4..2a25ccb 100644 --- a/PacketMediator.Tests/PacketMediator.Tests.csproj +++ b/PacketMediator.Tests/PacketMediator.Tests.csproj @@ -28,7 +28,7 @@ - + diff --git a/Rai.PacketMediator.sln b/PacketMediator.sln similarity index 91% rename from Rai.PacketMediator.sln rename to PacketMediator.sln index a7597b3..2542cb5 100644 --- a/Rai.PacketMediator.sln +++ b/PacketMediator.sln @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rai.PacketMediator", "Rai.PacketMediator\Rai.PacketMediator.csproj", "{13243A92-DC1E-4DBF-8E2C-13CE9ABFEAD3}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RaiNote.PacketMediator", "RaiNote.PacketMediator\RaiNote.PacketMediator.csproj", "{13243A92-DC1E-4DBF-8E2C-13CE9ABFEAD3}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PacketMediator.Samples", "PacketMediator.Samples\PacketMediator.Samples.csproj", "{C20254E6-0C15-43A4-9C4A-1D0B547F7983}" EndProject diff --git a/Rai.PacketMediator/IBidirectionalPacket.cs b/RaiNote.PacketMediator/IBidirectionalPacket.cs similarity index 86% rename from Rai.PacketMediator/IBidirectionalPacket.cs rename to RaiNote.PacketMediator/IBidirectionalPacket.cs index 9f8b78f..657dc87 100644 --- a/Rai.PacketMediator/IBidirectionalPacket.cs +++ b/RaiNote.PacketMediator/IBidirectionalPacket.cs @@ -2,7 +2,7 @@ using JetBrains.Annotations; -namespace Rai.PacketMediator; +namespace RaiNote.PacketMediator; [UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)] public interface IBidirectionalPacket : IOutgoingPacket, IIncomingPacket; diff --git a/Rai.PacketMediator/IIncomingPacket.cs b/RaiNote.PacketMediator/IIncomingPacket.cs similarity index 89% rename from Rai.PacketMediator/IIncomingPacket.cs rename to RaiNote.PacketMediator/IIncomingPacket.cs index 16388f0..4384b7c 100644 --- a/Rai.PacketMediator/IIncomingPacket.cs +++ b/RaiNote.PacketMediator/IIncomingPacket.cs @@ -2,7 +2,7 @@ using JetBrains.Annotations; -namespace Rai.PacketMediator; +namespace RaiNote.PacketMediator; [UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)] public interface IIncomingPacket : IPacket diff --git a/Rai.PacketMediator/IOutgoingPacket.cs b/RaiNote.PacketMediator/IOutgoingPacket.cs similarity index 89% rename from Rai.PacketMediator/IOutgoingPacket.cs rename to RaiNote.PacketMediator/IOutgoingPacket.cs index 2a1ab3c..1f3b131 100644 --- a/Rai.PacketMediator/IOutgoingPacket.cs +++ b/RaiNote.PacketMediator/IOutgoingPacket.cs @@ -2,7 +2,7 @@ using JetBrains.Annotations; -namespace Rai.PacketMediator; +namespace RaiNote.PacketMediator; [UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)] public interface IOutgoingPacket : IPacket diff --git a/Rai.PacketMediator/IPacket.cs b/RaiNote.PacketMediator/IPacket.cs similarity index 72% rename from Rai.PacketMediator/IPacket.cs rename to RaiNote.PacketMediator/IPacket.cs index ae02f2e..66b95f1 100644 --- a/Rai.PacketMediator/IPacket.cs +++ b/RaiNote.PacketMediator/IPacket.cs @@ -1,5 +1,5 @@ // Licensed to Timothy Schenk under the Apache 2.0 License. -namespace Rai.PacketMediator; +namespace RaiNote.PacketMediator; public interface IPacket; diff --git a/Rai.PacketMediator/IPacketHandler.cs b/RaiNote.PacketMediator/IPacketHandler.cs similarity index 97% rename from Rai.PacketMediator/IPacketHandler.cs rename to RaiNote.PacketMediator/IPacketHandler.cs index 8cedcf8..502a4f4 100644 --- a/Rai.PacketMediator/IPacketHandler.cs +++ b/RaiNote.PacketMediator/IPacketHandler.cs @@ -3,7 +3,7 @@ using System.Diagnostics; using JetBrains.Annotations; -namespace Rai.PacketMediator; +namespace RaiNote.PacketMediator; [UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)] public interface IPacketHandler : IPacketHandler diff --git a/Rai.PacketMediator/PacketDistributor.cs b/RaiNote.PacketMediator/PacketDistributor.cs similarity index 99% rename from Rai.PacketMediator/PacketDistributor.cs rename to RaiNote.PacketMediator/PacketDistributor.cs index 821b944..9c3dd17 100644 --- a/Rai.PacketMediator/PacketDistributor.cs +++ b/RaiNote.PacketMediator/PacketDistributor.cs @@ -9,7 +9,7 @@ using DotNext.Linq.Expressions; using DotNext.Metaprogramming; using Microsoft.Extensions.DependencyInjection; -namespace Rai.PacketMediator; +namespace RaiNote.PacketMediator; public class PacketDistributor where TPacketIdEnum : Enum { diff --git a/Rai.PacketMediator/PacketDistributorService.cs b/RaiNote.PacketMediator/PacketDistributorService.cs similarity index 97% rename from Rai.PacketMediator/PacketDistributorService.cs rename to RaiNote.PacketMediator/PacketDistributorService.cs index 8917ca0..3b564c2 100644 --- a/Rai.PacketMediator/PacketDistributorService.cs +++ b/RaiNote.PacketMediator/PacketDistributorService.cs @@ -3,7 +3,7 @@ using System.Reflection; using Microsoft.Extensions.Hosting; -namespace Rai.PacketMediator; +namespace RaiNote.PacketMediator; public class PacketDistributorService : IHostedService where TPacketIdEnum : Enum diff --git a/Rai.PacketMediator/PacketIdAttribute.cs b/RaiNote.PacketMediator/PacketIdAttribute.cs similarity index 91% rename from Rai.PacketMediator/PacketIdAttribute.cs rename to RaiNote.PacketMediator/PacketIdAttribute.cs index 6199bcc..69c3c4d 100644 --- a/Rai.PacketMediator/PacketIdAttribute.cs +++ b/RaiNote.PacketMediator/PacketIdAttribute.cs @@ -1,6 +1,6 @@ // Licensed to Timothy Schenk under the Apache 2.0 License. -namespace Rai.PacketMediator; +namespace RaiNote.PacketMediator; [AttributeUsage(AttributeTargets.Class, Inherited = false)] public abstract class PacketIdAttribute : Attribute where TPacketIdEnum : Enum diff --git a/Rai.PacketMediator/Rai.PacketMediator.csproj b/RaiNote.PacketMediator/RaiNote.PacketMediator.csproj similarity index 78% rename from Rai.PacketMediator/Rai.PacketMediator.csproj rename to RaiNote.PacketMediator/RaiNote.PacketMediator.csproj index b1ce750..bc84f10 100644 --- a/Rai.PacketMediator/Rai.PacketMediator.csproj +++ b/RaiNote.PacketMediator/RaiNote.PacketMediator.csproj @@ -10,6 +10,13 @@ https://forge.rainote.dev/rainote/PacketMediator GIT $(PackageVersion) + Timothy (RaiNote) Schenk + RaiNote.PacketMediator + RaiNote.PacketMediator + RaiNote.PacketMediator + Packet Mediator + A mediator specifically for packet handling when dispatching to respective packet handlers. + RaiNote.PacketMediator