Adds transactional outbox and email verification
Implements outbox pattern for reliable message delivery Adds email verification flow with Postmark integration Enhances account registration with secure token generation Introduces background processing for asynchronous email sending Implements database-level notification mechanism for message processing
This commit is contained in:
parent
88812177a9
commit
54b057886c
35 changed files with 1174 additions and 358 deletions
|
|
@ -12,6 +12,7 @@
|
|||
<ItemGroup>
|
||||
<ProjectReference Include="..\Core\PlanTempus.Core.csproj" />
|
||||
<ProjectReference Include="..\Database\PlanTempus.Database.csproj" />
|
||||
<ProjectReference Include="..\PlanTempus.Components\PlanTempus.Components.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
using Autofac;
|
||||
using PlanTempus.Components.Outbox;
|
||||
using PlanTempus.Core.Configurations.JsonConfigProvider;
|
||||
using PlanTempus.Core.Configurations;
|
||||
using PlanTempus.Core.Email;
|
||||
using PlanTempus.Core.ModuleRegistry;
|
||||
using PlanTempus.Core.Outbox;
|
||||
|
||||
namespace PlanTempus.Application
|
||||
{
|
||||
|
|
@ -45,7 +48,12 @@ namespace PlanTempus.Application
|
|||
TelemetryConfig = ConfigurationRoot.GetSection("ApplicationInsights").ToObject<TelemetryConfig>()
|
||||
});
|
||||
|
||||
|
||||
builder.RegisterModule<OutboxModule>();
|
||||
builder.RegisterModule<OutboxListenerModule>();
|
||||
builder.RegisterModule(new EmailModule
|
||||
{
|
||||
PostmarkConfiguration = ConfigurationRoot.GetSection("Postmark").ToObject<PostmarkConfiguration>()
|
||||
});
|
||||
}
|
||||
|
||||
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||
|
|
|
|||
|
|
@ -10,5 +10,10 @@
|
|||
"IngestionEndpoint": "http://localhost:5341",
|
||||
"ApiKey": null,
|
||||
"Environment": "MSTEST"
|
||||
},
|
||||
"Postmark": {
|
||||
"ServerToken": "3f285ee7-1d30-48fb-ab6f-a6ae92a843e7",
|
||||
"FromEmail": "janus@sevenweirdpeople.io",
|
||||
"TestToEmail": "janus@sevenweirdpeople.io"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue