CommonCore: - Constants for inter-program communication introduced
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Management;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Xylem.Common.CommonCore.Consts;
|
||||
|
||||
|
||||
namespace Xylem.Common.Cryptology.Security
|
||||
@@ -86,7 +87,7 @@ namespace Xylem.Common.Cryptology.Security
|
||||
/// </remarks>
|
||||
public static String GetPcNameFromHwId(String hardwareId)
|
||||
{
|
||||
if (!hardwareId.Contains(SeparatorPcFromHwId)) return "?";
|
||||
if (!hardwareId.Contains(SeparatorPcFromHwId)) return Constants.StrUnknown;
|
||||
var hwIdFields = hardwareId.Split(Convert.ToChar(SeparatorPcFromHwId));
|
||||
return hwIdFields[0];
|
||||
}
|
||||
|
||||
@@ -79,5 +79,11 @@
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\CommonCore\CommonCore.csproj">
|
||||
<Project>{1B02C79E-0B19-43E2-8F6B-71EF0C786C97}</Project>
|
||||
<Name>CommonCore</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
Reference in New Issue
Block a user