From 3d76024b6177e5706ea753dc51de3908725cb370 Mon Sep 17 00:00:00 2001 From: Halil ibrahim Kalkan Date: Fri, 12 Oct 2018 09:28:51 +0300 Subject: [PATCH] Fixed SmtpEmailSender and NullEmailSender --- .../Volo.Abp.Emailing/Volo/Abp/Emailing/NullEmailSender.cs | 6 +++--- .../Volo/Abp/Emailing/Smtp/SmtpEmailSender.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/framework/src/Volo.Abp.Emailing/Volo/Abp/Emailing/NullEmailSender.cs b/framework/src/Volo.Abp.Emailing/Volo/Abp/Emailing/NullEmailSender.cs index baf9440e3f..1a2949c148 100644 --- a/framework/src/Volo.Abp.Emailing/Volo/Abp/Emailing/NullEmailSender.cs +++ b/framework/src/Volo.Abp.Emailing/Volo/Abp/Emailing/NullEmailSender.cs @@ -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 /// /// Creates a new object. /// - /// Configuration - public NullEmailSender(IEmailSenderConfiguration configuration) - : base(configuration) + public NullEmailSender(IEmailSenderConfiguration configuration, IBackgroundJobManager backgroundJobManager) + : base(configuration, backgroundJobManager) { Logger = NullLogger.Instance; } diff --git a/framework/src/Volo.Abp.Emailing/Volo/Abp/Emailing/Smtp/SmtpEmailSender.cs b/framework/src/Volo.Abp.Emailing/Volo/Abp/Emailing/Smtp/SmtpEmailSender.cs index 3b45ab13ee..966c1b3dbb 100644 --- a/framework/src/Volo.Abp.Emailing/Volo/Abp/Emailing/Smtp/SmtpEmailSender.cs +++ b/framework/src/Volo.Abp.Emailing/Volo/Abp/Emailing/Smtp/SmtpEmailSender.cs @@ -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 /// /// Creates a new . /// - /// Configuration - public SmtpEmailSender(ISmtpEmailSenderConfiguration configuration) - : base(configuration) + public SmtpEmailSender(ISmtpEmailSenderConfiguration configuration, IBackgroundJobManager backgroundJobManager) + : base(configuration, backgroundJobManager) { _configuration = configuration; }