20 lines
558 B
C#
20 lines
558 B
C#
using System;
|
|
using System.Net.NetworkInformation;
|
|
|
|
namespace Swan.Net {
|
|
/// <summary>
|
|
/// Provides miscellaneous network utilities such as a Public IP finder,
|
|
/// a DNS client to query DNS records of any kind, and an NTP client.
|
|
/// </summary>
|
|
public static class Network {
|
|
/// <summary>
|
|
/// Gets the name of the host.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The name of the host.
|
|
/// </value>
|
|
// [Obsolete("NEED", false)]
|
|
public static String HostName => IPGlobalProperties.GetIPGlobalProperties().HostName;
|
|
}
|
|
}
|