using Microsoft.Extensions.DependencyInjection;

using Monitoring.Infrastructure.Abstractions;

namespace Monitoring.Infrastructure.Services;

public static class DependencyInjectionExtensions
{
	public static IServiceCollection AddInfrastructureServices(this IServiceCollection services)
	{
		_ = services.AddSingleton<PasswordService>();
		_ = services.AddSingleton<IPasswordService>(serviceProvider => serviceProvider.GetRequiredService<PasswordService>());

		return services;
	}
}
