Exemplo n.º 1
0
        /// <summary>
        ///   Creates a new instance of the CSyncRecord class
        /// </summary>
        /// <param name="name"> Name of the record </param>
        /// <param name="recordClass"> Class of the record </param>
        /// <param name="timeToLive"> Seconds the record should be cached at most </param>
        /// <param name="serialNumber"> SOA Serial Field </param>
        /// <param name="flags"> Flags</param>
        /// <param name="types"> Record types of the next owner </param>
        public CSyncRecord(DomainName name, RecordClass recordClass, int timeToLive, uint serialNumber, CSyncFlags flags, List <RecordType> types)
            : base(name, RecordType.CSync, recordClass, timeToLive)
        {
            SerialNumber = serialNumber;
            Flags        = flags;

            if ((types == null) || (types.Count == 0))
            {
                Types = new List <RecordType>();
            }
            else
            {
                Types = types.Distinct().OrderBy(x => x).ToList();
            }
        }
Exemplo n.º 2
0
		/// <summary>
		///   Creates a new instance of the CSyncRecord class
		/// </summary>
		/// <param name="name"> Name of the record </param>
		/// <param name="recordClass"> Class of the record </param>
		/// <param name="timeToLive"> Seconds the record should be cached at most </param>
		/// <param name="serialNumber"> SOA Serial Field </param>
		/// <param name="flags"> Flags</param>
		/// <param name="types"> Record types of the next owner </param>
		public CSyncRecord(DomainName name, RecordClass recordClass, int timeToLive, uint serialNumber, CSyncFlags flags, List<RecordType> types)
			: base(name, RecordType.CSync, recordClass, timeToLive)
		{
			SerialNumber = serialNumber;
			Flags = flags;

			if ((types == null) || (types.Count == 0))
			{
				Types = new List<RecordType>();
			}
			else
			{
				Types = types.Distinct().OrderBy(x => x).ToList();
			}
		}