1 write to Type
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Resolver\DnsResourceRecord.cs (1)
17Type = type;
15 references to Type
Microsoft.Extensions.ServiceDiscovery.Dns (13)
Resolver\DnsResolver.cs (13)
80if (answer.Type == QueryType.SRV) 102if (additional.Name.Equals(target) && (additional.Type == QueryType.A || additional.Type == QueryType.AAAA)) 176switch (answer.Type) 224if (answer.Type == QueryType.CNAME) 239if (answer.Type == queryType) 284Debug.Assert(record.Type == QueryType.CNAME, "Only CNAME records should be processed here."); 309Debug.Assert(record.Type is QueryType.A or QueryType.AAAA, "Only CNAME records should be processed here."); 312if (record.Type == QueryType.A && record.Data.Length != IPv4Length || 313record.Type == QueryType.AAAA && record.Data.Length != IPv6Length) 615records.Add(new DnsResourceRecord(record.Name, record.Type, record.Class, record.Ttl, record.Data)); 638DnsResourceRecord? soa = authorities.Find(r => r.Type == QueryType.SOA); 672if (!authorities.Exists(r => r.Type == QueryType.NS) && GetNegativeCacheExpiration(createdAt, authorities, out DateTime newExpiration))
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (2)
Resolver\DnsDataReaderTests.cs (1)
33Assert.Equal(QueryType.A, record.Type);
Resolver\LoopbackDnsServer.cs (1)
300!writer.TryWriteUInt16((ushort)record.Type) ||