liuying
2024-12-10 3e473e90358abbf82e7a60b6ed58ca2df02d4ce4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
 
namespace iWareCommon.Utils
{
    /// <summary>
    /// 机器帮助类
    /// </summary>
    public class MachineHelper
    {
        /// <summary>
        /// 获取主机名
        /// </summary>
        /// <returns></returns>
        public static string GetHostName()
        {
            return Dns.GetHostName();
        }
    }
}