Adds Infrastructure security hashing service

This commit is contained in:
BinaryAlley committed 2024-11-05 19:51:13 +02:00
1 parent 3725426aa7
commit e73556e915
3 files changed
+108 -1

No files matched your search

@@ -1,5 +1,7 @@
#region ========================================================================= USING =====================================================================================
using FluentValidation;
using Lumina.Application.Common.Infrastructure;
using Lumina.Infrastructure.Core.Security;
using Microsoft.Extensions.DependencyInjection;
using System.Reflection;
#endregion
@@ -21,6 +23,7 @@ public static class InfrastructureLayerServices
// scan the current assembly for validators and add them to the DI container
services.AddValidatorsFromAssembly(Assembly.GetExecutingAssembly(), ServiceLifetime.Singleton);
services.AddTransient<IHashService, HashService>();
return services;
}
}
}