Fixed SmtpEmailSender and NullEmailSender

pull/556/head
Halil ibrahim Kalkan 6 years ago
parent 4875d2e716
commit 3d76024b61

@ -2,6 +2,7 @@ using System.Net.Mail;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Volo.Abp.BackgroundJobs;
namespace Volo.Abp.Emailing
{
@ -16,9 +17,8 @@ namespace Volo.Abp.Emailing
/// <summary>
/// Creates a new <see cref="NullEmailSender"/> object.
/// </summary>
/// <param name="configuration">Configuration</param>
public NullEmailSender(IEmailSenderConfiguration configuration)
: base(configuration)
public NullEmailSender(IEmailSenderConfiguration configuration, IBackgroundJobManager backgroundJobManager)
: base(configuration, backgroundJobManager)
{
Logger = NullLogger<NullEmailSender>.Instance;
}

@ -2,6 +2,7 @@ using System;
using System.Net;
using System.Net.Mail;
using System.Threading.Tasks;
using Volo.Abp.BackgroundJobs;
using Volo.Abp.DependencyInjection;
namespace Volo.Abp.Emailing.Smtp
@ -16,9 +17,8 @@ namespace Volo.Abp.Emailing.Smtp
/// <summary>
/// Creates a new <see cref="SmtpEmailSender"/>.
/// </summary>
/// <param name="configuration">Configuration</param>
public SmtpEmailSender(ISmtpEmailSenderConfiguration configuration)
: base(configuration)
public SmtpEmailSender(ISmtpEmailSenderConfiguration configuration, IBackgroundJobManager backgroundJobManager)
: base(configuration, backgroundJobManager)
{
_configuration = configuration;
}

Loading…
Cancel
Save