Пример #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)
 {
 }
Пример #8
0
 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)
 {
 }