-
Notifications
You must be signed in to change notification settings - Fork 803
Expand file tree
/
Copy pathDNSServerConnectionInfoProfile.cs
More file actions
34 lines (29 loc) · 1.12 KB
/
DNSServerConnectionInfoProfile.cs
File metadata and controls
34 lines (29 loc) · 1.12 KB
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
30
31
32
33
34
using System.Collections.Generic;
namespace NETworkManager.Models.Network;
/// <summary>
/// Class is used to store informations about a DNS server profile.
/// </summary>
public class DNSServerConnectionInfoProfile : ServerConnectionInfoProfile
{
/// <summary>
/// Create an instance of <see cref="DNSServerConnectionInfoProfile" />. This will use the
/// default DNS server from Windows (<see cref="UseWindowsDNSServer" />=true).
/// </summary>
public DNSServerConnectionInfoProfile()
{
Name = "[Windows DNS]";
UseWindowsDNSServer = true;
}
/// <summary>
/// Create an instance of <see cref="DNSServerConnectionInfoProfile" /> with parameters.
/// </summary>
/// <param name="name">Name of the profile.</param>
/// <param name="servers">List of servers as <see cref="ServerConnectionInfo" />.</param>
public DNSServerConnectionInfoProfile(string name, List<ServerConnectionInfo> servers) : base(name, servers)
{
}
/// <summary>
/// Use the DNS server from Windows.
/// </summary>
public bool UseWindowsDNSServer { get; set; }
}