Esempio n. 1
0
 /// <summary>
 /// Two DnsResourceDataNetworkServiceAccessPoint are iff their area address, system identifier and selector fields are equal.
 /// </summary>
 public bool Equals(DnsResourceDataNetworkServiceAccessPoint other)
 {
     return(other != null &&
            AreaAddress.Equals(other.AreaAddress) &&
            SystemIdentifier.Equals(other.SystemIdentifier) &&
            Selector.Equals(other.Selector));
 }
        internal override void WriteDataSimple(byte[] buffer, int offset)
        {
            AreaAddress.Write(buffer, offset + Offset.AreaAddress);

            int afterAreaOffset = offset + AreaAddress.Length;
            buffer.Write(afterAreaOffset + OffsetAfterArea.SystemIdentifier, SystemIdentifier, Endianity.Big);
            buffer.Write(afterAreaOffset + OffsetAfterArea.Selector, Selector);
        }
Esempio n. 3
0
 public Area GetArea(AreaAddress areaAddress)
 {
     if (this.StoredAreas.ContainsKey(areaAddress.AreaName))
     {
         return(this.StoredAreas[areaAddress.AreaName]);
     }
     else
     {
         return(null);
     }
 }
Esempio n. 4
0
 public void RemoveArea(AreaAddress areaAddress)
 {
     throw new NotImplementedException();
 }
Esempio n. 5
0
 public ModelResult <Area> EditArea(AreaAddress areaAddress, ImportAreaInput areaInput)
 {
     throw new NotImplementedException();
 }
Esempio n. 6
0
 public IPageOfItems <Post> GetPostsWithDrafts(int pageIndex, int pageSize, AreaAddress areaAddress)
 {
     throw new NotImplementedException();
 }
Esempio n. 7
0
 public IEnumerable <KeyValuePair <ArchiveData, int> > GetArchives(AreaAddress areaAddress)
 {
     throw new NotImplementedException();
 }
Esempio n. 8
0
 public IPageOfItems <Post> GetPosts(int pageIndex, int pageSize, AreaAddress areaAddress, DateTime?sinceDate)
 {
     return(new PageOfItems <Post>(AddedPosts.Where(p => p.Area.Name == areaAddress.AreaName), pageIndex, pageSize, AddedPosts.Count));
 }