feat: add timestamp interceptor and infrastructure service registration

This commit is contained in:
Stevan Freeborn
2026-02-02 04:48:10 -06:00
parent c01d0b5daa
commit 48913fc434
2 changed files with 55 additions and 0 deletions
@@ -0,0 +1,13 @@
namespace FiscalOS.Infra.DependencyInjection;
public static class ServiceCollectionExtensions
{
public static IServiceCollection AddInfrastructure(this IServiceCollection services)
{
services.AddSingleton<IPasswordHasher, PasswordHasher>(static (_) => PasswordHasher.New());
services.ConfigureOptions<AppDbContextOptionsSetup>();
services.AddDbContext<AppDbContext>();
services.AddHostedService<MigrationService>();
return services;
}
}