Browse Source

Added Mailer to DbFactor

Kenric Nugteren 4 tháng trước cách đây
mục cha
commit
0c20f9ccfd
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      InABox.Database/DbFactory.cs

+ 4 - 0
InABox.Database/DbFactory.cs

@@ -3,6 +3,7 @@ using FluentResults;
 using InABox.Clients;
 using InABox.Configuration;
 using InABox.Core;
+using InABox.Mail;
 using InABox.Scripting;
 
 namespace InABox.Database;
@@ -64,6 +65,9 @@ public static class DbFactory
         set => SetStoreTypes(value);
     }
 
+    public static string? EmailAddress { get; set; }
+    public static ICoreMailer? Mailer { get; set; }
+
     public static DateTime Expiry { get; set; }
 
     public static IProvider NewProvider(Logger logger) => ProviderFactory.NewProvider(logger);