From 604d21162ac4b24ac7285cd95712adf9aba42583 Mon Sep 17 00:00:00 2001 From: Khwezi Mngoma Date: Mon, 4 May 2026 21:33:26 +0200 Subject: [PATCH] Added email service oonfigurartino --- LiteCharms.Extensions/Services.cs | 8 ++++++++ LiteCharms.Features/LiteCharms.Features.csproj | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/LiteCharms.Extensions/Services.cs b/LiteCharms.Extensions/Services.cs index 10742a8..44959ec 100644 --- a/LiteCharms.Extensions/Services.cs +++ b/LiteCharms.Extensions/Services.cs @@ -1,10 +1,18 @@ using LiteCharms.Infrastructure.Database; using LiteCharms.Infrastructure.HealthChecks; +using LiteCharms.Models.Configuraton.Email; namespace LiteCharms.Extensions; public static class Services { + public static IServiceCollection AddEmail(this IServiceCollection services, IConfiguration configuration) + { + services.Configure(configuration.GetSection("Email")); + + return services; + } + public static IServiceCollection AddHealthChecksSupport(this IServiceCollection services, IConfiguration configuration) { services.AddHealthChecks() diff --git a/LiteCharms.Features/LiteCharms.Features.csproj b/LiteCharms.Features/LiteCharms.Features.csproj index 6852b8a..b248d24 100644 --- a/LiteCharms.Features/LiteCharms.Features.csproj +++ b/LiteCharms.Features/LiteCharms.Features.csproj @@ -11,7 +11,7 @@ LiteCharms.Features - 1.0.11 + 1.0.12 Khwezi Mngoma Lite Charms (PTY) Ltd Feature components for Lite Charms applications.