)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » AuthMessageSender (IdentitySample.Services)

Public general use code classes and xml files that we've compiled and used over the years:

    1: // Licensed to the .NET Foundation under one or more agreements.
    2: // The .NET Foundation licenses this file to you under the MIT license.
    3:  
    4: namespace IdentitySample.Services
    5: {
    6:     ////////////////////////////////////////////////////////////////////////////
    7:  
    8:     /// <summary publish="true">
    9:     ///
   10:     /// </summary>
   11:     /// 
   12:     /// <remarks> 
   13:     /// Copyright © 2006-2025 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   14:     ///
   15:     /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
   16:     /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
   17:     ///
   18:     /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
   19:     /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   20:     /// 
   21:     /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
   22:     /// 
   23:     /// Copyright notice: This notice may not be removed or altered from any source distribution.
   24:     /// </remarks> 
   25:  
   26:     // This class is used by the application to send Email and SMS
   27:     // when you turn on two-factor authentication in ASP.NET Identity.
   28:     // For more details see this link http://go.microsoft.com/fwlink/?LinkID=532713
   29:     public class AuthMessageSender : IEmailSender, ISmsSender
   30:     {
   31:         public Task SendEmailAsync(string email, string subject, string message)
   32:         {
   33:             // Plug in your email service here to send an email.
   34:             return Task.FromResult(0);
   35:         }
   36:  
   37:         public Task SendSmsAsync(string number, string message)
   38:         {
   39:             // Plug in your SMS service here to send a text message.
   40:             return Task.FromResult(0);
   41:         }
   42:     }
   43: }