-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7900af7
commit 63d7507
Showing
30 changed files
with
881 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Amazon.Lambda.Annotations; | ||
using Amazon.Lambda.Core; | ||
using Amazon.Lambda.SQSEvents; | ||
using Application.Persistence.Shared.ReadModels; | ||
using AWSLambdas.Api.WorkerHost.Extensions; | ||
using Infrastructure.Workers.Api; | ||
|
||
namespace AWSLambdas.Api.WorkerHost.Lambdas; | ||
|
||
public class DeliverEmail | ||
{ | ||
private readonly IQueueMonitoringApiRelayWorker<EmailMessage> _worker; | ||
|
||
public DeliverEmail(IQueueMonitoringApiRelayWorker<EmailMessage> worker) | ||
{ | ||
_worker = worker; | ||
} | ||
|
||
[LambdaFunction] | ||
public async Task<bool> Run(SQSEvent sqsEvent, ILambdaContext context) | ||
{ | ||
return await sqsEvent.RelayRecordsAsync(_worker, CancellationToken.None); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
279 changes: 260 additions & 19 deletions
279
src/AncillaryApplication.UnitTests/AncillaryApplicationSpec.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.