public Proccess2()
 {
     _sender = new MailSender();
     _net    = new NetRequest(_sender);
     top3    = new List <Top3>();
     radeo   = new List <Top3>();
 }
 public RequestOrchestrator(IEmailsRepository emailsRepository, ILogger <RequestOrchestrator> logger,
                            ISmtpSender smtpSender, IValidationMessageFormatter validationMessageFormatter, IValidator <Email> validator)
 {
     _emailsRepository           = emailsRepository;
     _logger                     = logger;
     _smtpSender                 = smtpSender;
     _validationMessageFormatter = validationMessageFormatter;
     _validator                  = validator;
 }
Beispiel #3
0
 public Process(string link)
 {
     _sender     = new MailSender();
     _reqrequest = new RegExWorker();
     _net        = new NetRequest(_sender);
     //_saver = new FileWriter(_sender);
     _parser = new DataParser(_sender, _net);
     _link   = link;
 }
Beispiel #4
0
 public ManageController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender,
     UrlEncoder urlEncoder,
     IBlobStorageService blobService,
     IFaceService faceService,
     ISmtpSender smtpSender)
 {
     this._userManager       = userManager;
     this._signInManager     = signInManager;
     this.blobStorageService = blobService;
     this.faceService        = faceService;
     this.smtpSender         = smtpSender;
 }
 public DataParser(ISmtpSender sender, NetRequest net)
 {
     _errorSend = sender;
     _net       = net;
 }
Beispiel #6
0
 public NotificationService(IContentRepository contentRepository, ISmtpSender sender, MailConfiguration mailConfiguration)
 {
     _contentRepository = contentRepository;
     _sender            = sender;
     _mailConfiguration = mailConfiguration;
 }
 public NotificationService(IContentRepository contentRepository, ISmtpSender sender, MailConfiguration mailConfiguration)
 {
     _contentRepository = contentRepository;
     _sender = sender;
     _mailConfiguration = mailConfiguration;
 }
 public NetRequest(ISmtpSender send)
 {
     _responseFromServer = "";
     _code      = 0;
     _errorSend = send;
 }
 public TransctionMailSender(string templateUrl, ISmtpSender smtpSender)
 {
     _templateUrl = templateUrl;
     _smtpSender  = smtpSender;
 }
Beispiel #10
0
 /// <param name="directory">Просматриваемая директория.</param>
 /// <param name="smtpSender">Объект для отправки Email.</param>
 /// <param name="logger">Объект для логирования.</param>
 public FileWatcher(string directory, ISmtpSender smtpSender, ILogger logger)
 {
     Directory  = directory;
     SmtpSender = smtpSender;
     Logger     = logger;
 }
 public Proccess2()
 {
     _sender = new MailSender();
     _net    = new NetRequest();
 }
 public Procces()
 {
     _sender           = new MailSender();
     _connectionString = @"Data Source=.\SQLEXPRESS;Initial Catalog=usersdb;Integrated Security=True";
 }
 public EmotionManager(IFaceService faceService, ISmtpSender smtpSender, IEmotionStrategyFactory emotionStrategyFactory)
 {
     this.faceService            = faceService;
     this.smtpSender             = smtpSender;
     this.emotionStrategyFactory = emotionStrategyFactory;
 }