diff --git a/src/presentation/DigitalData.MessagingService.Client.DependencyInjection/DigitalData.MessagingService.Client.DependencyInjection.csproj b/src/presentation/DigitalData.MessagingService.Client.DependencyInjection/DigitalData.MessagingService.Client.DependencyInjection.csproj
index e4263f8..0541074 100644
--- a/src/presentation/DigitalData.MessagingService.Client.DependencyInjection/DigitalData.MessagingService.Client.DependencyInjection.csproj
+++ b/src/presentation/DigitalData.MessagingService.Client.DependencyInjection/DigitalData.MessagingService.Client.DependencyInjection.csproj
@@ -21,8 +21,9 @@
-
+
+
diff --git a/src/presentation/DigitalData.MessagingService.Client.DependencyInjection/EmailSender.cs b/src/presentation/DigitalData.MessagingService.Client.DependencyInjection/EmailSender.cs
index 72b191e..49226a9 100644
--- a/src/presentation/DigitalData.MessagingService.Client.DependencyInjection/EmailSender.cs
+++ b/src/presentation/DigitalData.MessagingService.Client.DependencyInjection/EmailSender.cs
@@ -2,6 +2,7 @@
using DigitalData.MessagingService.Publisher.Abstraction;
using DigitalData.MessagingService.RabbitMQ;
using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Logging;
using System;
namespace DigitalData.MessagingService.Client.DependencyInjection;
@@ -13,14 +14,14 @@ namespace DigitalData.MessagingService.Client.DependencyInjection;
///
/// This class manages its own internal using a
/// pattern so the DI container is only built once,
-/// on the first call to .
+/// on the first call to .
///
public static class EmailSender
{
///
/// Internal event used to accumulate service registrations before the
/// is built. Handlers are added by
- /// and invoked exactly once during
+ /// and invoked exactly once during
/// lazy initialization.
///
private static event Action ConfigureServices = delegate { };
@@ -33,6 +34,7 @@ public static class EmailSender
private static readonly Lazy LazyProvider = new(() =>
{
var services = new ServiceCollection();
+ services.AddLogging();
ConfigureServices?.Invoke(services);
return services.BuildServiceProvider();
});
@@ -42,7 +44,7 @@ public static class EmailSender
/// and the internal has been initialized.
///
///
- /// if has been called
+ /// if has been called
/// and the provider is built; otherwise .
///
public static bool IsConnected => LazyProvider.IsValueCreated;
@@ -110,7 +112,7 @@ public static class EmailSender
///
/// The outgoing email event to enqueue.
///
- /// Thrown when has not been called prior to sending.
+ /// Thrown when has not been called prior to sending.
///
///
/// This method resolves from the internal