-
-
Notifications
You must be signed in to change notification settings - Fork 139
/
Copy pathILookupClient.cs
29 lines (26 loc) · 970 Bytes
/
ILookupClient.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2024 Michael Conrad.
// Licensed under the Apache License, Version 2.0.
// See LICENSE file for details.
using System;
using System.Collections.Generic;
namespace DnsClient
{
/// <summary>
/// The contract for the LookupClient.
/// <para>
/// The interfaces for the query methods and the lookup client properties are separated so that one can
/// inject or expose only the <see cref="IDnsQuery"/> without exposing the configuration options.
/// </para>
/// </summary>
public interface ILookupClient : IDnsQuery
{
/// <summary>
/// Gets the list of configured or resolved name servers of the <see cref="ILookupClient"/> instance.
/// </summary>
IReadOnlyCollection<NameServer> NameServers { get; }
/// <summary>
/// Gets the configured settings of the <see cref="ILookupClient"/> instance.
/// </summary>
LookupClientSettings Settings { get; }
}
}