Exemplo n.º 1
0
 public Worker(ILogger <Worker> logger, IHostApplicationLifetime appLifetime, IOptions <WorkerConfiguration> workerOptions, IOptions <EmailConfiguraton> emailOptions, IOptions <BehaviourConfiguration> behaviourOptoins)
 {
     this.logger                   = logger;
     this.workerOptions            = workerOptions.Value;
     this.emailOptions             = emailOptions.Value;
     WirellesUnitFactory.Behaviour = behaviourOptoins.Value;
     this.appLifetime              = appLifetime;
 }
Exemplo n.º 2
0
 public EmailService(EmailConfiguraton conf, MailPriority Priority, bool IsHTLMmsg = false)
 {
     config   = conf;
     isHTML   = IsHTLMmsg;
     priority = Priority;
 }