예제 #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;
 }
예제 #2
0
 public EmailService(EmailConfiguraton conf, MailPriority Priority, bool IsHTLMmsg = false)
 {
     config   = conf;
     isHTML   = IsHTLMmsg;
     priority = Priority;
 }