27 lines
568 B
C#
27 lines
568 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DTS.Common.Licensing.SystemInformation
|
|
{
|
|
public static class MachineInfo
|
|
{
|
|
static public string MachineName
|
|
{
|
|
get
|
|
{
|
|
try
|
|
{
|
|
return System.Environment.MachineName;
|
|
}
|
|
catch (Exception)
|
|
{
|
|
return "";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|