WIP
This commit is contained in:
parent
54b057886c
commit
7fc1ae0650
204 changed files with 4345 additions and 134 deletions
14
PlanTempus.Core/Email/EmailModule.cs
Normal file
14
PlanTempus.Core/Email/EmailModule.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using Autofac;
|
||||
|
||||
namespace PlanTempus.Core.Email;
|
||||
|
||||
public class EmailModule : Module
|
||||
{
|
||||
public required PostmarkConfiguration PostmarkConfiguration { get; set; }
|
||||
|
||||
protected override void Load(ContainerBuilder builder)
|
||||
{
|
||||
builder.RegisterInstance(PostmarkConfiguration).AsSelf().SingleInstance();
|
||||
builder.RegisterType<PostmarkEmailService>().As<IEmailService>().SingleInstance();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue