18 lines
527 B
C#

using EnvelopeGenerator.Application.Configurations;
using EnvelopeGenerator.Application.Contracts;
using Microsoft.Extensions.Options;
namespace EnvelopeGenerator.Application.Services;
public class EnvelopeSmsService : IEnvelopeSmsService
{
private readonly ISmsSender _sender;
private readonly TotpSmsParams _totpSmsParams;
public EnvelopeSmsService(ISmsSender sender, IOptions<TotpSmsParams> totpSmsParamsOptions)
{
_sender = sender;
_totpSmsParams = totpSmsParamsOptions.Value;
}
}