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)
76if (answer.Type == QueryType.SRV) 98if (additional.Name.Equals(target) && (additional.Type == QueryType.A || additional.Type == QueryType.AAAA)) 197switch (answer.Type) 245if (answer.Type == QueryType.CNAME) 260if (answer.Type == queryType) 305Debug.Assert(record.Type == QueryType.CNAME, "Only CNAME records should be processed here."); 330Debug.Assert(record.Type is QueryType.A or QueryType.AAAA, "Only CNAME records should be processed here."); 333if (record.Type == QueryType.A && record.Data.Length != IPv4Length || 334record.Type == QueryType.AAAA && record.Data.Length != IPv6Length) 601records.Add(new DnsResourceRecord(record.Name, record.Type, record.Class, record.Ttl, record.Data)); 624DnsResourceRecord? soa = authorities.FirstOrDefault(r => r.Type == QueryType.SOA); 658if (!authorities.Any(r => r.Type == QueryType.NS) && GetNegativeCacheExpiration(createdAt, authorities, out DateTime newExpiration))