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
|
run: dotnet restore
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
dotnet build Rai.PacketMediator.csproj -c Release
|
dotnet build RaiNote.PacketMediator.csproj -c Release
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
needs: [ build ]
|
needs: [ build ]
|
||||||
|
@ -50,7 +50,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Pack nugets
|
- name: Pack nugets
|
||||||
run: |
|
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 .
|
dotnet pack -c Release -p:PackageVersion=${{env.VERSION}} --output .
|
||||||
- name: Push to NuGet
|
- name: Push to NuGet
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Rai.PacketMediator\Rai.PacketMediator.csproj" />
|
<ProjectReference Include="..\RaiNote.PacketMediator\RaiNote.PacketMediator.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Rai.PacketMediator\Rai.PacketMediator.csproj" />
|
<ProjectReference Include="..\RaiNote.PacketMediator\RaiNote.PacketMediator.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 17
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 17.0.31903.59
|
VisualStudioVersion = 17.0.31903.59
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
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
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PacketMediator.Samples", "PacketMediator.Samples\PacketMediator.Samples.csproj", "{C20254E6-0C15-43A4-9C4A-1D0B547F7983}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PacketMediator.Samples", "PacketMediator.Samples\PacketMediator.Samples.csproj", "{C20254E6-0C15-43A4-9C4A-1D0B547F7983}"
|
||||||
EndProject
|
EndProject
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
|
|
||||||
namespace Rai.PacketMediator;
|
namespace RaiNote.PacketMediator;
|
||||||
|
|
||||||
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
|
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
|
||||||
public interface IBidirectionalPacket : IOutgoingPacket, IIncomingPacket;
|
public interface IBidirectionalPacket : IOutgoingPacket, IIncomingPacket;
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
|
|
||||||
namespace Rai.PacketMediator;
|
namespace RaiNote.PacketMediator;
|
||||||
|
|
||||||
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
|
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
|
||||||
public interface IIncomingPacket : IPacket
|
public interface IIncomingPacket : IPacket
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
|
|
||||||
namespace Rai.PacketMediator;
|
namespace RaiNote.PacketMediator;
|
||||||
|
|
||||||
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
|
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
|
||||||
public interface IOutgoingPacket : IPacket
|
public interface IOutgoingPacket : IPacket
|
|
@ -1,5 +1,5 @@
|
||||||
// Licensed to Timothy Schenk under the Apache 2.0 License.
|
// Licensed to Timothy Schenk under the Apache 2.0 License.
|
||||||
|
|
||||||
namespace Rai.PacketMediator;
|
namespace RaiNote.PacketMediator;
|
||||||
|
|
||||||
public interface IPacket;
|
public interface IPacket;
|
|
@ -3,7 +3,7 @@
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
|
|
||||||
namespace Rai.PacketMediator;
|
namespace RaiNote.PacketMediator;
|
||||||
|
|
||||||
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
|
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
|
||||||
public interface IPacketHandler<in TIncomingPacket, in TSession> : IPacketHandler<TSession>
|
public interface IPacketHandler<in TIncomingPacket, in TSession> : IPacketHandler<TSession>
|
|
@ -9,7 +9,7 @@ using DotNext.Linq.Expressions;
|
||||||
using DotNext.Metaprogramming;
|
using DotNext.Metaprogramming;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace Rai.PacketMediator;
|
namespace RaiNote.PacketMediator;
|
||||||
|
|
||||||
public class PacketDistributor<TPacketIdEnum, TSession> where TPacketIdEnum : Enum
|
public class PacketDistributor<TPacketIdEnum, TSession> where TPacketIdEnum : Enum
|
||||||
{
|
{
|
|
@ -3,7 +3,7 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
|
|
||||||
namespace Rai.PacketMediator;
|
namespace RaiNote.PacketMediator;
|
||||||
|
|
||||||
public class PacketDistributorService<TPacketIdEnum, TSession> : IHostedService
|
public class PacketDistributorService<TPacketIdEnum, TSession> : IHostedService
|
||||||
where TPacketIdEnum : Enum
|
where TPacketIdEnum : Enum
|
|
@ -1,6 +1,6 @@
|
||||||
// Licensed to Timothy Schenk under the Apache 2.0 License.
|
// Licensed to Timothy Schenk under the Apache 2.0 License.
|
||||||
|
|
||||||
namespace Rai.PacketMediator;
|
namespace RaiNote.PacketMediator;
|
||||||
|
|
||||||
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
|
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
|
||||||
public abstract class PacketIdAttribute<TPacketIdEnum> : Attribute where TPacketIdEnum : Enum
|
public abstract class PacketIdAttribute<TPacketIdEnum> : Attribute where TPacketIdEnum : Enum
|
|
@ -10,6 +10,13 @@
|
||||||
<RepositoryUrl>https://forge.rainote.dev/rainote/PacketMediator</RepositoryUrl>
|
<RepositoryUrl>https://forge.rainote.dev/rainote/PacketMediator</RepositoryUrl>
|
||||||
<RepositoryType>GIT</RepositoryType>
|
<RepositoryType>GIT</RepositoryType>
|
||||||
<Version>$(PackageVersion)</Version>
|
<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>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
Loading…
Reference in a new issue