Add project files.

This commit is contained in:
2022-10-06 16:53:07 +03:00
parent 45fac5e086
commit 6f3acce7d4
38 changed files with 1051 additions and 0 deletions
@@ -0,0 +1,21 @@
using Microsoft.Extensions.Logging;
using PracticeCalendar.Domain.Interfaces;
namespace PracticeCalendar.Infrastructure.Notification
{
public class FileEmailSender : IEmailSender
{
private readonly ILogger<FileEmailSender> logger;
public FileEmailSender(ILogger<FileEmailSender> logger)
{
this.logger = logger;
}
public Task SendEmailAsync(string to, string from, string subject, string body)
{
logger.LogDebug($"Sending email from {from}, to {to}, subject {subject}, body {body}");
//TODO save email content to a file
return Task.CompletedTask;
}
}
}