22 lines
743 B
C#
22 lines
743 B
C#
using LCU.Api.Internal.DispatcherSharedLib.Configurations;
|
|
using LCU.Library.Internal.LcuHttpClient.HttpRequest;
|
|
using LCU.Library.Internal.NotificationsModels.Models;
|
|
namespace LCU.Api.Internal.Dispatcher.DataAccess;
|
|
|
|
public class NotificationsApiDao : INotificationsApiDao
|
|
{
|
|
private readonly NotificationApiConfiguration _configuration;
|
|
private readonly IPostRequest _postRequest;
|
|
|
|
public NotificationsApiDao(NotificationApiConfiguration configuration, IPostRequest postRequest)
|
|
{
|
|
_configuration = configuration;
|
|
_postRequest = postRequest;
|
|
}
|
|
|
|
public async Task SendEmailAsync(EmailRequest request)
|
|
{
|
|
await _postRequest.Async(new Uri(_configuration.EmailEndpointUrl), request);
|
|
}
|
|
}
|