| | | 1 | | using ArturRios.Heimdall.Command.Services; |
| | | 2 | | using ArturRios.Heimdall.Shared.Security; |
| | | 3 | | |
| | | 4 | | namespace ArturRios.Heimdall.WebApi.Email; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Stand-in <see cref="IRestrictionLiftNotifier" /> for environments with no Mailgun |
| | | 8 | | /// credentials, matching the other logging senders. Production refuses to start without |
| | | 9 | | /// delivery configured, so this never runs there. |
| | | 10 | | /// </summary> |
| | 6 | 11 | | public class LoggingRestrictionLiftNotifier(ILogger<LoggingRestrictionLiftNotifier> logger) |
| | | 12 | | : IRestrictionLiftNotifier |
| | | 13 | | { |
| | | 14 | | public Task<bool> NotifyAsync(string email) |
| | | 15 | | { |
| | 1 | 16 | | logger.LogInformation("Restriction lift notification issued for {EmailRef}", LogSafeEmail.Reference(email)); |
| | | 17 | | |
| | 1 | 18 | | return Task.FromResult(true); |
| | | 19 | | } |
| | | 20 | | } |