示例#1
0
        internal SectionBase(MailmanList list)
        {
            _list = list ?? throw new ArgumentNullException("list");

            if (!_propsDict.ContainsKey(this.GetType()))
            {
                _propsDict[this.GetType()] = this.GetType().GetProperties();
            }

            // Start with path on the class
            var basePath = GetPathValue(this.GetType().GetCustomAttributes(false));

            // Now see if we have subpaths on properties
            foreach (var prop in _props)
            {
                var subPath = GetPathValue(prop.GetCustomAttributes(false));
                if (subPath != null)
                {
                    _paths.Add(String.Format("{0}/{1}", basePath, subPath));
                }
            }
            if (!_paths.Any())
            {
                _paths.Add(basePath);
            }
        }
示例#2
0
 internal MailmanClient(MailmanList list)
 {
     if (list == null)
         throw new ArgumentNullException("list");
     _list = list;
     this.FollowRedirects = true;
     this.CookieContainer = new System.Net.CookieContainer();
 }
示例#3
0
 internal ContentFilteringSection(MailmanList list) : base(list)
 {
 }
示例#4
0
 internal GeneralSection(MailmanList list) : base(list)
 {
 }
示例#5
0
 internal TopicsSection(MailmanList list) : base(list)
 {
 }
示例#6
0
 internal ArchivingSection(MailmanList list) : base(list)
 {
 }
示例#7
0
 internal PrivacySection(MailmanList list) : base(list)
 {
 }
 internal AutoResponderSection(MailmanList list)
     : base(list)
 {
 }
示例#9
0
 internal PasswordsSection(MailmanList list) : base(list)
 {
 }
示例#10
0
 internal NonDigestSection(MailmanList list) : base(list)
 {
 }
示例#11
0
 internal ArchivingSection(MailmanList list)
     : base(list)
 {
 }
示例#12
0
 internal MembershipSection(MailmanList list) : base(list) { }
示例#13
0
 internal PasswordsSection(MailmanList list)
     : base(list)
 {
 }
 internal BounceProcessingSection(MailmanList list) : base(list)
 {
 }
 internal MailNewsGatewaysSection(MailmanList list)
     : base(list)
 {
 }
 internal MailNewsGatewaysSection(MailmanList list) : base(list)
 {
 }
 internal BounceProcessingSection(MailmanList list)
     : base(list)
 {
 }
示例#18
0
 internal PrivacySection(MailmanList list)
     : base(list)
 {
 }
示例#19
0
 internal TopicsSection(MailmanList list)
     : base(list)
 {
 }
示例#20
0
 internal NonDigestSection(MailmanList list)
     : base(list)
 {
 }
示例#21
0
 internal MembershipSection(MailmanList list) : base(list)
 {
 }
示例#22
0
 internal AutoResponderSection(MailmanList list) : base(list)
 {
 }
 internal ContentFilteringSection(MailmanList list)
     : base(list)
 {
 }