chore: nuget adjustments for packet ID
Some checks failed
Some checks failed
This commit is contained in:
parent
3b7cf431fa
commit
4dc8fbe845
13 changed files with 20 additions and 13 deletions
|
@ -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: |
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Rai.PacketMediator\Rai.PacketMediator.csproj" />
|
||||
<ProjectReference Include="..\RaiNote.PacketMediator\RaiNote.PacketMediator.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Rai.PacketMediator\Rai.PacketMediator.csproj" />
|
||||
<ProjectReference Include="..\RaiNote.PacketMediator\RaiNote.PacketMediator.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -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
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace Rai.PacketMediator;
|
||||
namespace RaiNote.PacketMediator;
|
||||
|
||||
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
|
||||
public interface IBidirectionalPacket : IOutgoingPacket, IIncomingPacket;
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace Rai.PacketMediator;
|
||||
namespace RaiNote.PacketMediator;
|
||||
|
||||
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
|
||||
public interface IIncomingPacket : IPacket
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace Rai.PacketMediator;
|
||||
namespace RaiNote.PacketMediator;
|
||||
|
||||
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
|
||||
public interface IOutgoingPacket : IPacket
|
|
@ -1,5 +1,5 @@
|
|||
// Licensed to Timothy Schenk under the Apache 2.0 License.
|
||||
|
||||
namespace Rai.PacketMediator;
|
||||
namespace RaiNote.PacketMediator;
|
||||
|
||||
public interface IPacket;
|
|
@ -3,7 +3,7 @@
|
|||
using System.Diagnostics;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace Rai.PacketMediator;
|
||||
namespace RaiNote.PacketMediator;
|
||||
|
||||
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
|
||||
public interface IPacketHandler<in TIncomingPacket, in TSession> : IPacketHandler<TSession>
|
|
@ -9,7 +9,7 @@ using DotNext.Linq.Expressions;
|
|||
using DotNext.Metaprogramming;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Rai.PacketMediator;
|
||||
namespace RaiNote.PacketMediator;
|
||||
|
||||
public class PacketDistributor<TPacketIdEnum, TSession> where TPacketIdEnum : Enum
|
||||
{
|
|
@ -3,7 +3,7 @@
|
|||
using System.Reflection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
||||
namespace Rai.PacketMediator;
|
||||
namespace RaiNote.PacketMediator;
|
||||
|
||||
public class PacketDistributorService<TPacketIdEnum, TSession> : IHostedService
|
||||
where TPacketIdEnum : Enum
|
|
@ -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<TPacketIdEnum> : Attribute where TPacketIdEnum : Enum
|
|
@ -10,6 +10,13 @@
|
|||
<RepositoryUrl>https://forge.rainote.dev/rainote/PacketMediator</RepositoryUrl>
|
||||
<RepositoryType>GIT</RepositoryType>
|
||||
<Version>$(PackageVersion)</Version>
|
||||
<Authors>Timothy (RaiNote) Schenk</Authors>
|
||||
<AssemblyName>RaiNote.PacketMediator</AssemblyName>
|
||||
<RootNamespace>RaiNote.PacketMediator</RootNamespace>
|
||||
<PackageId>RaiNote.PacketMediator</PackageId>
|
||||
<Title>Packet Mediator</Title>
|
||||
<Description>A mediator specifically for packet handling when dispatching to respective packet handlers.</Description>
|
||||
<Product>RaiNote.PacketMediator</Product>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
Loading…
Reference in a new issue