1 write to Type
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Resolver\DnsResourceRecord.cs (1)
17Type = type;
13 references to Type
Microsoft.Extensions.ServiceDiscovery.Dns (13)
Resolver\DnsResolver.cs (13)
74if (answer.Type == QueryType.SRV) 96if (additional.Name.Equals(target) && (additional.Type == QueryType.A || additional.Type == QueryType.AAAA)) 195switch (answer.Type) 243if (answer.Type == QueryType.CNAME) 258if (answer.Type == queryType) 303Debug.Assert(record.Type == QueryType.CNAME, "Only CNAME records should be processed here."); 328Debug.Assert(record.Type is QueryType.A or QueryType.AAAA, "Only CNAME records should be processed here."); 331if (record.Type == QueryType.A && record.Data.Length != IPv4Length || 332record.Type == QueryType.AAAA && record.Data.Length != IPv6Length) 599records.Add(new DnsResourceRecord(record.Name, record.Type, record.Class, record.Ttl, record.Data)); 622DnsResourceRecord? soa = authorities.FirstOrDefault(r => r.Type == QueryType.SOA); 656if (!authorities.Any(r => r.Type == QueryType.NS) && GetNegativeCacheExpiration(createdAt, authorities, out DateTime newExpiration))