From 32ff5609cfb93d00c704e3315ff66c50782f85ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=9A=D1=80?= =?UTF-8?q?=D1=8E=D0=BA=D0=BE=D0=B2?= Date: Mon, 6 May 2024 11:46:04 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=207?= =?UTF-8?q?=20=D0=BB=D0=B0=D0=B1=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MailWorker/AbstractMailWorker.cs | 3 +-- TypographyBusinessLogic/MailWorker/MailKitWorker.cs | 6 ++---- TypographyClientApp/Views/Home/Mails.cshtml | 10 +++++----- TypographyRestApi/appsettings.json | 2 +- TypographyView/App.config | 2 +- TypographyView/Program.cs | 1 + 6 files changed, 11 insertions(+), 13 deletions(-) diff --git a/TypographyBusinessLogic/MailWorker/AbstractMailWorker.cs b/TypographyBusinessLogic/MailWorker/AbstractMailWorker.cs index 2558c49..bf61399 100644 --- a/TypographyBusinessLogic/MailWorker/AbstractMailWorker.cs +++ b/TypographyBusinessLogic/MailWorker/AbstractMailWorker.cs @@ -19,8 +19,7 @@ namespace TypographyBusinessLogic.MailWorker protected int _popPort; private readonly IMessageInfoLogic _messageInfoLogic; private readonly ILogger _logger; - public AbstractMailWorker(ILogger logger, - IMessageInfoLogic messageInfoLogic) + public AbstractMailWorker(ILogger logger, IMessageInfoLogic messageInfoLogic) { _logger = logger; _messageInfoLogic = messageInfoLogic; diff --git a/TypographyBusinessLogic/MailWorker/MailKitWorker.cs b/TypographyBusinessLogic/MailWorker/MailKitWorker.cs index cd7e9c5..c366cb2 100644 --- a/TypographyBusinessLogic/MailWorker/MailKitWorker.cs +++ b/TypographyBusinessLogic/MailWorker/MailKitWorker.cs @@ -16,10 +16,8 @@ namespace TypographyBusinessLogic.MailWorker { public class MailKitWorker : AbstractMailWorker { - public MailKitWorker(ILogger logger, IMessageInfoLogic - messageInfoLogic) : base(logger, messageInfoLogic) { } - protected override async Task SendMailAsync(MailSendInfoBindingModel - info) + public MailKitWorker(ILogger logger, IMessageInfoLogic messageInfoLogic) : base(logger, messageInfoLogic) { } + protected override async Task SendMailAsync(MailSendInfoBindingModel info) { using var objMailMessage = new MailMessage(); using var objSmtpClient = new SmtpClient(_smtpClientHost, _smtpClientPort); diff --git a/TypographyClientApp/Views/Home/Mails.cshtml b/TypographyClientApp/Views/Home/Mails.cshtml index d2f3d6d..6318240 100644 --- a/TypographyClientApp/Views/Home/Mails.cshtml +++ b/TypographyClientApp/Views/Home/Mails.cshtml @@ -3,11 +3,11 @@ @model List @{ - ViewData["Title"] = "Mails"; + ViewData["Title"] = "Письма"; }
-

Mails

+

Письма

@@ -23,13 +23,13 @@ - Mail's date' + Дата отправки - Title + Заголовок - Text + Текст diff --git a/TypographyRestApi/appsettings.json b/TypographyRestApi/appsettings.json index 6abc1f5..4190ba3 100644 --- a/TypographyRestApi/appsettings.json +++ b/TypographyRestApi/appsettings.json @@ -11,5 +11,5 @@ "PopHost": "pop.gmail.com", "PopPort": "995", "MailLogin": "rpplabs6@gmail.com", - "MailPassword": "73rpplabs2473" + "MailPassword": "dkjl fzkt rmjk izpn" } diff --git a/TypographyView/App.config b/TypographyView/App.config index aa7e46f..cc0005f 100644 --- a/TypographyView/App.config +++ b/TypographyView/App.config @@ -6,6 +6,6 @@ - + \ No newline at end of file diff --git a/TypographyView/Program.cs b/TypographyView/Program.cs index 96375a2..2dbc18b 100644 --- a/TypographyView/Program.cs +++ b/TypographyView/Program.cs @@ -80,6 +80,7 @@ namespace TypographyView services.AddTransient(); services.AddTransient(); services.AddTransient(); + services.AddSingleton(); services.AddTransient();