mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 14:40:36 +01:00
24 lines
751 B
C#
24 lines
751 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using BTCPayServer.Logging;
|
|
|
|
namespace BTCPayServer.Services.Mails
|
|
{
|
|
class ServerEmailSender : EmailSender
|
|
{
|
|
public ServerEmailSender(SettingsRepository settingsRepository,
|
|
IBackgroundJobClient backgroundJobClient,
|
|
Logs logs) : base(backgroundJobClient, logs)
|
|
{
|
|
ArgumentNullException.ThrowIfNull(settingsRepository);
|
|
SettingsRepository = settingsRepository;
|
|
}
|
|
|
|
public SettingsRepository SettingsRepository { get; }
|
|
|
|
public override Task<EmailSettings> GetEmailSettings()
|
|
{
|
|
return SettingsRepository.GetSettingAsync<EmailSettings>();
|
|
}
|
|
}
|
|
}
|