DD.WellWorkover.Cloud/AsbCloudApp/Services/IEmailService.cs

27 lines
958 B
C#
Raw Normal View History

2022-04-11 18:00:34 +05:00
using System.Collections.Generic;
2022-02-28 14:44:26 +05:00
namespace AsbCloudApp.Services
{
2022-08-05 17:52:42 +05:00
/// <summary>
/// Сервис отправки сообщений
/// </summary>
2022-02-28 14:44:26 +05:00
public interface IEmailService
{
2022-08-05 17:52:42 +05:00
/// <summary>
/// добавить сообщение на отправку нескольким пользователям
/// </summary>
/// <param name="addresses"></param>
/// <param name="subject"></param>
/// <param name="htmlBody"></param>
2022-02-28 14:44:26 +05:00
void EnqueueSend(IEnumerable<string> addresses, string subject, string htmlBody);
2022-08-05 17:52:42 +05:00
/// <summary>
/// добавить сообщение на отправку одному пользователю
/// </summary>
/// <param name="address"></param>
/// <param name="subject"></param>
/// <param name="htmlBody"></param>
void EnqueueSend(string address, string subject, string htmlBody);
2022-02-28 14:44:26 +05:00
}
}