public Ml(Kernel kernel, Logger logger, MailSave mailSave, MlOption mlOption,string mlName,List<string>domainList) { Status = false; _kernel = kernel; _logger = logger; _mlName = mlName; //_mlOption = mlOption; _mlMailDb = new MlMailDb(logger, mlOption.ManageDir, mlName); if (!_mlMailDb.Status) { return;//初期化中断 } _mlAddr = new MlAddr(mlName, domainList); _mlUserList = new MlUserList(mlOption.MemberList); _mlSender = new MlSender(mailSave, logger); var mlSubject = new MlSubject(mlOption.TitleKind, mlName); _mlDevivery = new MlDelivery(mailSave, logger,_mlUserList, _mlAddr, _mlMailDb, mlSubject, mlOption.Docs,mlOption.MaxGet); _mlCreator2 = new MlCreator(_mlAddr,mlOption.Docs); _autoRegistration = mlOption.AutoRegistration; const double effectiveMsec = 120 * 1000; //有効時間120秒 _mlSubscribeDb = new MlSubscribeDb(mlOption.ManageDir, mlName, effectiveMsec);//confirm文字列データベース if (!_mlMailDb.Status) { return;//初期化中断 } Status = true;//ステータス }
public Ml(Kernel kernel, Logger logger, MailSave mailSave, MlOption mlOption, string mlName, List <string> domainList) { Status = false; _kernel = kernel; _logger = logger; _mlName = mlName; //_mlOption = mlOption; _mlMailDb = new MlMailDb(logger, mlOption.ManageDir, mlName); if (!_mlMailDb.Status) { return;//初期化中断 } _mlAddr = new MlAddr(mlName, domainList); _mlUserList = new MlUserList(mlOption.MemberList); _mlSender = new MlSender(mailSave, logger); var mlSubject = new MlSubject(mlOption.TitleKind, mlName); _mlDevivery = new MlDelivery(mailSave, logger, _mlUserList, _mlAddr, _mlMailDb, mlSubject, mlOption.Docs, mlOption.MaxGet); _mlCreator2 = new MlCreator(_mlAddr, mlOption.Docs); _autoRegistration = mlOption.AutoRegistration; const double effectiveMsec = 120 * 1000; //有効時間120秒 _mlSubscribeDb = new MlSubscribeDb(mlOption.ManageDir, mlName, effectiveMsec); //confirm文字列データベース if (!_mlMailDb.Status) { return; //初期化中断 } Status = true; //ステータス }
public void SetUp() { //var tsDir = new TsDir(); var manageDir = TestUtil.GetTmpDir("TestDir"); const string mlName = "1ban"; _mlSubscribeDb = new MlSubscribeDb(manageDir, mlName, EffectiveMsec); }