MessageServices.cs 866 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. namespace Winsoft.GOV.XF.WXCore.Services
  6. {
  7. // This class is used by the application to send Email and SMS
  8. // when you turn on two-factor authentication in ASP.NET Identity.
  9. // For more details see this link https://go.microsoft.com/fwlink/?LinkID=532713
  10. public class AuthMessageSender : IEmailSender, ISmsSender
  11. {
  12. public Task SendEmailAsync(string email, string subject, string message)
  13. {
  14. // Plug in your email service here to send an email.
  15. return Task.FromResult(0);
  16. }
  17. public Task SendSmsAsync(string number, string message)
  18. {
  19. // Plug in your SMS service here to send a text message.
  20. return Task.FromResult(0);
  21. }
  22. }
  23. }