using System; using Microsoft.eShopWeb.ApplicationCore.Interfaces; namespace Microsoft.eShopWeb.Infrastructure.Services; // This class is used by the application to send email for account confirmation and password reset. // For more details see https://go.microsoft.com/fwlink/?LinkID=532713 public class EmailSender : IEmailSender { private int _counter; public void SendEmailAsync(string email, string subject, string message) { //_counter++; //if (_counter % 3 == 0) //{ throw new InvalidOperationException("oops... failed to send email. That's not good."); //} // TODO: Wire this up to actual email sending logic via SendGrid, local SMTP, etc. } }