コード例 #1
0
ファイル: Worker.cs プロジェクト: GabrielMastny/CTU60G
 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;
 }