示例#1
0
        public bool AddReport(ReportEmailConfiguration report)
        {
            if (_reportConfigurations.ContainsKey(report.ReportName))
            {
                return(false);
            }

            _reportConfigurations.Add(report.ReportName, report);
            return(true);
        }
示例#2
0
        public ReportEmailConfiguration ToReportEmailConfiguration()
        {
            ReportEmailConfiguration config = new ReportEmailConfiguration(Key, _subject);

            foreach (string to in _toList)
            {
                config.AddToRecipient(to);
            }

            foreach (string cc in _ccList)
            {
                config.AddCcRecipient(cc);
            }

            return(config);
        }