From 9d56c84b9439ca86dfccd0cabf818040f0bd893f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Sun, 26 Dec 2021 23:15:17 +0100 Subject: [PATCH] feat: register in packet specific serializer to DI --- Core/NosSmooth.Core/Extensions/ServiceCollectionExtensions.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/NosSmooth.Core/Extensions/ServiceCollectionExtensions.cs b/Core/NosSmooth.Core/Extensions/ServiceCollectionExtensions.cs index 46b40e2..c95ef7f 100644 --- a/Core/NosSmooth.Core/Extensions/ServiceCollectionExtensions.cs +++ b/Core/NosSmooth.Core/Extensions/ServiceCollectionExtensions.cs @@ -16,6 +16,7 @@ using NosCore.Packets.Interfaces; using NosSmooth.Core.Client; using NosSmooth.Core.Commands; using NosSmooth.Core.Packets; +using NosSmooth.Core.Packets.Converters; namespace NosSmooth.Core.Extensions; @@ -55,6 +56,8 @@ public static class ServiceCollectionExtensions serviceCollection.AddSingleton(); + serviceCollection.AddSpecificPacketConverter(); + return serviceCollection; } -- 2.48.1