PIbd-21 Lab7 KozyrevSS SewingDresses #22

Closed
Serxionaft wants to merge 6 commits from Lab7 into Lab6
2 changed files with 17 additions and 12 deletions
Showing only changes of commit 723bc88387 - Show all commits

View File

@ -6,18 +6,19 @@ namespace SewingDressesBusinessLogic.MailWorker
{
public abstract class AbstractMailWorker
{
protected static string _mailLogin = string.Empty;
protected static string _mailPassword = string.Empty;
protected static string _smtpClientHost = string.Empty;
protected static int _smtpClientPort;
protected static string _popHost = string.Empty;
protected static int _popPort;
protected string _mailLogin = string.Empty;
protected string _mailPassword = string.Empty;
protected string _smtpClientHost = string.Empty;
protected int _smtpClientPort;
protected string _popHost = string.Empty;
protected int _popPort;
private readonly IMessageInfoLogic _messageInfoLogic;
private readonly ILogger _logger;
public AbstractMailWorker(ILogger<AbstractMailWorker> logger, IMessageInfoLogic messageInfoLogic)
{
_logger = logger;
_messageInfoLogic = messageInfoLogic;
_logger.LogWarning("INIT ABSTRACT MAIL WORKER");
}
public void MailConfig(MailConfigBindingModel config)
{

View File

@ -55,20 +55,24 @@ namespace SewingDressesView
services.AddTransient<IOrderStorage, OrderStorage>();
services.AddTransient<IDressStorage, DressStorage>();
services.AddTransient<IClientStorage, ClientStorage>();
services.AddTransient<IComponentLogic, ComponentLogic>();
services.AddTransient<IImplementStorage, ImplementStorage>();
services.AddTransient<IMessageInfoStorage, MessageInfoStorage>();
services.AddTransient<IComponentLogic, ComponentLogic>();
services.AddTransient<IOrderLogic, OrderLogic>();
services.AddTransient<IDressLogic, DressLogic>();
services.AddTransient<IReportLogic, ReportLogic>();
services.AddTransient<IClientLogic, ClientLogic>();
services.AddTransient<IImplementLogic, ImplementLogic>();
services.AddTransient<IImplementStorage, ImplementStorage>();
services.AddTransient<IWorkProcess, WorkModeling>();
services.AddTransient<IMessageInfoStorage, MessageInfoStorage>();
services.AddTransient<IMessageInfoLogic, MessageInfoLogic>();
services.AddTransient<AbstractMailWorker, MailKitWorker>();
services.AddTransient<IMessageInfoLogic, MessageInfoLogic>();
services.AddTransient<IWorkProcess, WorkModeling>();
services.AddSingleton<AbstractMailWorker, MailKitWorker>();
services.AddTransient<AbstractSaveToExcel, SaveToExcel>();
services.AddTransient<AbstractSaveToPdf, SaveToPdf>();
services.AddTransient<AbstractSaveToWord, SaveToWord>();
services.AddTransient<MainForm>();
services.AddTransient<ComponentForm>();
services.AddTransient<ComponentsForm>();