~ruther/NosSmooth

9d56c84b9439ca86dfccd0cabf818040f0bd893f — František Boháček 3 years ago 915617c
feat: register in packet specific serializer to DI
1 files changed, 3 insertions(+), 0 deletions(-)

M Core/NosSmooth.Core/Extensions/ServiceCollectionExtensions.cs
M Core/NosSmooth.Core/Extensions/ServiceCollectionExtensions.cs => Core/NosSmooth.Core/Extensions/ServiceCollectionExtensions.cs +3 -0
@@ 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<CommandProcessor>();

        serviceCollection.AddSpecificPacketConverter<InPacketSerializer>();

        return serviceCollection;
    }


Do not follow this link