36 lines
913 B
C#
36 lines
913 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data.Entity;
|
|
using System.Linq;
|
|
using System.Security.Claims;
|
|
using System.Threading.Tasks;
|
|
using System.Web;
|
|
using Microsoft.AspNet.Identity;
|
|
using Microsoft.AspNet.Identity.EntityFramework;
|
|
using Microsoft.AspNet.Identity.Owin;
|
|
using Microsoft.Owin;
|
|
using Microsoft.Owin.Security;
|
|
using Chruch.Net.Models;
|
|
|
|
namespace Chruch.Net
|
|
{
|
|
public class EmailService : IIdentityMessageService
|
|
{
|
|
public Task SendAsync(IdentityMessage message)
|
|
{
|
|
// 將您的電子郵件服務外掛到這裡以傳送電子郵件。
|
|
return Task.FromResult(0);
|
|
}
|
|
}
|
|
|
|
public class SmsService : IIdentityMessageService
|
|
{
|
|
public Task SendAsync(IdentityMessage message)
|
|
{
|
|
// 將您的 SMS 服務外掛到這裡以傳送簡訊。
|
|
return Task.FromResult(0);
|
|
}
|
|
}
|
|
|
|
}
|