Commit cfd1c4db by jiawei.su

add files

parent 17cefb5c
namespace Siger.Client.Comm
{
public class Constant
{
private readonly static string _key = "SigerSimpleLinsence";
public static string GetLinsenceKeyStr(int projectId,string strInfo)
{
var key= $"projectId{projectId}&{_key}&{strInfo}";
return MD5Helper.Get32MD5(key);
}
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace Siger.Client.Comm
{
internal struct ABCDStruct
{
public uint A;
public uint B;
public uint C;
public uint D;
}
public class MD5Helper
{
private MD5Helper()
{
}
public static byte[] GetHash(string input, Encoding encoding)
{
if (null == input)
{
throw new ArgumentNullException(nameof(input), "Unable to calculate hash over null input data");
}
if (null == encoding)
{
throw new ArgumentNullException(nameof(encoding),
"Unable to calculate hash over a string without a default encoding. Consider using the GetHash(string) overload to use UTF8 Encoding");
}
byte[] target = encoding.GetBytes(input);
return GetHash(target);
}
public static byte[] GetHash(string input)
{
return GetHash(input, new UTF8Encoding());
}
public static string GetHashString(byte[] input)
{
if (null == input)
{
throw new ArgumentNullException(nameof(input), "Unable to calculate hash over null input data");
}
string retval = BitConverter.ToString(GetHash(input));
retval = retval.Replace("-", string.Empty);
return retval;
}
public static string GetHashString(string input, Encoding encoding)
{
if (null == input)
{
throw new System.ArgumentNullException("input", "Unable to calculate hash over null input data");
}
if (null == encoding)
{
throw new System.ArgumentNullException("encoding",
"Unable to calculate hash over a string without a default encoding. Consider using the GetHashString(string) overload to use UTF8 Encoding");
}
byte[] target = encoding.GetBytes(input);
return GetHashString(target);
}
public static string GetHashString(string input)
{
return GetHashString(input, new UTF8Encoding());
}
public static byte[] GetHash(Stream input)
{
if (null == input)
{
throw new System.ArgumentNullException(nameof(input), "Unable to calculate hash over null input data");
}
//// Intitial values defined in RFC 1321
ABCDStruct abcd = new ABCDStruct();
abcd.A = 0x67452301;
abcd.B = 0xefcdab89;
abcd.C = 0x98badcfe;
abcd.D = 0x10325476;
var curretnStreamPos = input.Position;
input.Position = 0;
//// We pass in the input array by block, the final block of data must be handled specialy for padding & length embeding
while (input.Position <= input.Length - 64)
{
var data = new byte[64];
input.Read(data, 0, data.Length);
MD5Helper.GetHashBlock(data, ref abcd, 0);
}
//// The final data block.
var leftDataSize = (int)(input.Length - input.Position);
var finalData = new byte[leftDataSize];
input.Read(finalData, 0, finalData.Length);
var hash = MD5Helper.GetHashFinalBlock(finalData, 0, leftDataSize, abcd, input.Length * 8);
input.Position = curretnStreamPos;
return hash;
}
public static byte[] GetHash(byte[] input)
{
if (null == input)
{
throw new System.ArgumentNullException(nameof(input), "Unable to calculate hash over null input data");
}
//// Intitial values defined in RFC 1321
ABCDStruct abcd = new ABCDStruct();
abcd.A = 0x67452301;
abcd.B = 0xefcdab89;
abcd.C = 0x98badcfe;
abcd.D = 0x10325476;
//// We pass in the input array by block, the final block of data must be handled specialy for padding & length embeding
int startIndex = 0;
while (startIndex <= input.Length - 64)
{
MD5Helper.GetHashBlock(input, ref abcd, startIndex);
startIndex += 64;
}
//// The final data block.
return MD5Helper.GetHashFinalBlock(input, startIndex, input.Length - startIndex, abcd, (Int64)input.Length * 8);
}
internal static byte[] GetHashFinalBlock(byte[] input, int ibStart, int cbSize, ABCDStruct ABCD, Int64 len)
{
byte[] working = new byte[64];
byte[] length = BitConverter.GetBytes(len);
//// Padding is a single bit 1, followed by the number of 0s required to make size congruent to 448 modulo 512. Step 1 of RFC 1321
//// The CLR ensures that our buffer is 0-assigned, we don't need to explicitly set it. This is why it ends up being quicker to just
//// use a temporary array rather then doing in-place assignment (5% for small inputs)
Array.Copy(input, ibStart, working, 0, cbSize);
working[cbSize] = 0x80;
//// We have enough room to store the length in this chunk
if (cbSize < 56)
{
Array.Copy(length, 0, working, 56, 8);
GetHashBlock(working, ref ABCD, 0);
}
else //// We need an aditional chunk to store the length
{
GetHashBlock(working, ref ABCD, 0);
//// Create an entirely new chunk due to the 0-assigned trick mentioned above, to avoid an extra function call clearing the array
working = new byte[64];
Array.Copy(length, 0, working, 56, 8);
GetHashBlock(working, ref ABCD, 0);
}
byte[] output = new byte[16];
Array.Copy(BitConverter.GetBytes(ABCD.A), 0, output, 0, 4);
Array.Copy(BitConverter.GetBytes(ABCD.B), 0, output, 4, 4);
Array.Copy(BitConverter.GetBytes(ABCD.C), 0, output, 8, 4);
Array.Copy(BitConverter.GetBytes(ABCD.D), 0, output, 12, 4);
return output;
}
//// Performs a single block transform of MD5 for a given set of ABCD inputs
/* If implementing your own hashing framework, be sure to set the initial ABCD correctly according to RFC 1321:
// A = 0x67452301;
// B = 0xefcdab89;
// C = 0x98badcfe;
// D = 0x10325476;
*/
internal static void GetHashBlock(byte[] input, ref ABCDStruct abcdValue, int ibStart)
{
uint[] temp = Converter(input, ibStart);
uint a = abcdValue.A;
uint b = abcdValue.B;
uint c = abcdValue.C;
uint d = abcdValue.D;
a = r1(a, b, c, d, temp[0], 7, 0xd76aa478);
d = r1(d, a, b, c, temp[1], 12, 0xe8c7b756);
c = r1(c, d, a, b, temp[2], 17, 0x242070db);
b = r1(b, c, d, a, temp[3], 22, 0xc1bdceee);
a = r1(a, b, c, d, temp[4], 7, 0xf57c0faf);
d = r1(d, a, b, c, temp[5], 12, 0x4787c62a);
c = r1(c, d, a, b, temp[6], 17, 0xa8304613);
b = r1(b, c, d, a, temp[7], 22, 0xfd469501);
a = r1(a, b, c, d, temp[8], 7, 0x698098d8);
d = r1(d, a, b, c, temp[9], 12, 0x8b44f7af);
c = r1(c, d, a, b, temp[10], 17, 0xffff5bb1);
b = r1(b, c, d, a, temp[11], 22, 0x895cd7be);
a = r1(a, b, c, d, temp[12], 7, 0x6b901122);
d = r1(d, a, b, c, temp[13], 12, 0xfd987193);
c = r1(c, d, a, b, temp[14], 17, 0xa679438e);
b = r1(b, c, d, a, temp[15], 22, 0x49b40821);
a = r2(a, b, c, d, temp[1], 5, 0xf61e2562);
d = r2(d, a, b, c, temp[6], 9, 0xc040b340);
c = r2(c, d, a, b, temp[11], 14, 0x265e5a51);
b = r2(b, c, d, a, temp[0], 20, 0xe9b6c7aa);
a = r2(a, b, c, d, temp[5], 5, 0xd62f105d);
d = r2(d, a, b, c, temp[10], 9, 0x02441453);
c = r2(c, d, a, b, temp[15], 14, 0xd8a1e681);
b = r2(b, c, d, a, temp[4], 20, 0xe7d3fbc8);
a = r2(a, b, c, d, temp[9], 5, 0x21e1cde6);
d = r2(d, a, b, c, temp[14], 9, 0xc33707d6);
c = r2(c, d, a, b, temp[3], 14, 0xf4d50d87);
b = r2(b, c, d, a, temp[8], 20, 0x455a14ed);
a = r2(a, b, c, d, temp[13], 5, 0xa9e3e905);
d = r2(d, a, b, c, temp[2], 9, 0xfcefa3f8);
c = r2(c, d, a, b, temp[7], 14, 0x676f02d9);
b = r2(b, c, d, a, temp[12], 20, 0x8d2a4c8a);
a = r3(a, b, c, d, temp[5], 4, 0xfffa3942);
d = r3(d, a, b, c, temp[8], 11, 0x8771f681);
c = r3(c, d, a, b, temp[11], 16, 0x6d9d6122);
b = r3(b, c, d, a, temp[14], 23, 0xfde5380c);
a = r3(a, b, c, d, temp[1], 4, 0xa4beea44);
d = r3(d, a, b, c, temp[4], 11, 0x4bdecfa9);
c = r3(c, d, a, b, temp[7], 16, 0xf6bb4b60);
b = r3(b, c, d, a, temp[10], 23, 0xbebfbc70);
a = r3(a, b, c, d, temp[13], 4, 0x289b7ec6);
d = r3(d, a, b, c, temp[0], 11, 0xeaa127fa);
c = r3(c, d, a, b, temp[3], 16, 0xd4ef3085);
b = r3(b, c, d, a, temp[6], 23, 0x04881d05);
a = r3(a, b, c, d, temp[9], 4, 0xd9d4d039);
d = r3(d, a, b, c, temp[12], 11, 0xe6db99e5);
c = r3(c, d, a, b, temp[15], 16, 0x1fa27cf8);
b = r3(b, c, d, a, temp[2], 23, 0xc4ac5665);
a = r4(a, b, c, d, temp[0], 6, 0xf4292244);
d = r4(d, a, b, c, temp[7], 10, 0x432aff97);
c = r4(c, d, a, b, temp[14], 15, 0xab9423a7);
b = r4(b, c, d, a, temp[5], 21, 0xfc93a039);
a = r4(a, b, c, d, temp[12], 6, 0x655b59c3);
d = r4(d, a, b, c, temp[3], 10, 0x8f0ccc92);
c = r4(c, d, a, b, temp[10], 15, 0xffeff47d);
b = r4(b, c, d, a, temp[1], 21, 0x85845dd1);
a = r4(a, b, c, d, temp[8], 6, 0x6fa87e4f);
d = r4(d, a, b, c, temp[15], 10, 0xfe2ce6e0);
c = r4(c, d, a, b, temp[6], 15, 0xa3014314);
b = r4(b, c, d, a, temp[13], 21, 0x4e0811a1);
a = r4(a, b, c, d, temp[4], 6, 0xf7537e82);
d = r4(d, a, b, c, temp[11], 10, 0xbd3af235);
c = r4(c, d, a, b, temp[2], 15, 0x2ad7d2bb);
b = r4(b, c, d, a, temp[9], 21, 0xeb86d391);
abcdValue.A = unchecked(a + abcdValue.A);
abcdValue.B = unchecked(b + abcdValue.B);
abcdValue.C = unchecked(c + abcdValue.C);
abcdValue.D = unchecked(d + abcdValue.D);
}
//// Manually unrolling these equations nets us a 20% performance improvement
private static uint r1(uint a, uint b, uint c, uint d, uint x, int s, uint t)
{
//// (b + LSR((a + F(b, c, d) + x + t), s))
//// F(x, y, z) ((x & y) | ((x ^ 0xFFFFFFFF) & z))
return unchecked(b + LSR((a + ((b & c) | ((b ^ 0xFFFFFFFF) & d)) + x + t), s));
}
private static uint r2(uint a, uint b, uint c, uint d, uint x, int s, uint t)
{
//// (b + LSR((a + G(b, c, d) + x + t), s))
//// G(x, y, z) ((x & z) | (y & (z ^ 0xFFFFFFFF)))
return unchecked(b + LSR((a + ((b & d) | (c & (d ^ 0xFFFFFFFF))) + x + t), s));
}
private static uint r3(uint a, uint b, uint c, uint d, uint x, int s, uint t)
{
//// (b + LSR((a + H(b, c, d) + k + i), s))
//// H(x, y, z) (x ^ y ^ z)
return unchecked(b + LSR((a + (b ^ c ^ d) + x + t), s));
}
private static uint r4(uint a, uint b, uint c, uint d, uint x, int s, uint t)
{
//// (b + LSR((a + I(b, c, d) + k + i), s))
//// I(x, y, z) (y ^ (x | (z ^ 0xFFFFFFFF)))
return unchecked(b + LSR((a + (c ^ (b | (d ^ 0xFFFFFFFF))) + x + t), s));
}
//// Implementation of left rotate
//// s is an int instead of a uint becuase the CLR requires the argument passed to >>/<< is of
//// type int. Doing the demoting inside this function would add overhead.
private static uint LSR(uint i, int s)
{
return ((i << s) | (i >> (32 - s)));
}
//// Convert input array into array of UInts
private static uint[] Converter(byte[] input, int ibStart)
{
if (null == input)
{
throw new ArgumentNullException(nameof(input), "Unable convert null array to array of uInts");
}
uint[] result = new uint[16];
for (int i = 0; i < 16; i++)
{
result[i] = (uint)input[ibStart + i * 4];
result[i] += (uint)input[ibStart + i * 4 + 1] << 8;
result[i] += (uint)input[ibStart + i * 4 + 2] << 16;
result[i] += (uint)input[ibStart + i * 4 + 3] << 24;
}
return result;
}
/// <summary>
/// 此代码示例通过创建哈希字符串适用于任何 MD5 哈希函数 (在任何平台) 上创建 32 个字符的十六进制格式哈希字符串
/// </summary>
/// <param name="source"></param>
/// <returns></returns>
public static string Get32MD5(string source)
{
using (MD5 md5Hash = MD5.Create())
{
byte[] data = md5Hash.ComputeHash(Encoding.UTF8.GetBytes(source));
StringBuilder sBuilder = new StringBuilder();
for (int i = 0; i < data.Length; i++)
{
sBuilder.Append(data[i].ToString("x2"));
}
string hash = sBuilder.ToString();
return hash.ToLower();
}
}
/// <summary>
/// 获取16位md5加密
/// </summary>
/// <param name="source"></param>
/// <returns></returns>
public static string Get16MD5(string source)
{
using (MD5 md5Hash = MD5.Create())
{
byte[] data = md5Hash.ComputeHash(Encoding.UTF8.GetBytes(source));
//转换成字符串,并取9到25位
string sBuilder = BitConverter.ToString(data, 4, 8);
//BitConverter转换出来的字符串会在每个字符中间产生一个分隔符,需要去除掉
sBuilder = sBuilder.Replace("-", "");
return sBuilder.ToString().ToLower();
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Management;
using System.Text;
using System.Threading.Tasks;
namespace Siger.Client.Comm
{
public class MachineHelper
{
public static string GetDiskID()
{
try
{
string strDiskID = string.Empty;
ManagementClass mc = new ManagementClass("Win32_DiskDrive");
ManagementObjectCollection moc = mc.GetInstances();
foreach (ManagementObject mo in moc)
{
strDiskID = mo.Properties["Model"].Value.ToString();
}
moc = null;
mc = null;
return strDiskID;
}
catch
{
return "unknown";
}
}
/// <summary>
/// 获取本机MAC地址
/// </summary>
/// <returns>本机MAC地址</returns>
public static string GetMacAddress()
{
try
{
string strMac = string.Empty;
ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection moc = mc.GetInstances();
foreach (ManagementObject mo in moc)
{
if ((bool)mo["IPEnabled"] == true)
{
strMac = mo["MacAddress"].ToString();
}
}
moc = null;
mc = null;
return strMac;
}
catch
{
return "unknown";
}
}
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Management" Version="6.0.0" />
</ItemGroup>
</Project>
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Siger.Client.Comm/1.0.0": {
"dependencies": {
"System.Management": "6.0.0"
},
"runtime": {
"Siger.Client.Comm.dll": {}
}
},
"System.CodeDom/6.0.0": {
"runtime": {
"lib/net6.0/System.CodeDom.dll": {
"assemblyVersion": "6.0.0.0",
"fileVersion": "6.0.21.52210"
}
}
},
"System.Management/6.0.0": {
"dependencies": {
"System.CodeDom": "6.0.0"
},
"runtime": {
"lib/net6.0/System.Management.dll": {
"assemblyVersion": "4.0.0.0",
"fileVersion": "6.0.21.52210"
}
},
"runtimeTargets": {
"runtimes/win/lib/net6.0/System.Management.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.0.0.0",
"fileVersion": "6.0.21.52210"
}
}
}
}
},
"libraries": {
"Siger.Client.Comm/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"System.CodeDom/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-CPc6tWO1LAer3IzfZufDBRL+UZQcj5uS207NHALQzP84Vp/z6wF0Aa0YZImOQY8iStY0A2zI/e3ihKNPfUm8XA==",
"path": "system.codedom/6.0.0",
"hashPath": "system.codedom.6.0.0.nupkg.sha512"
},
"System.Management/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-sHsESYMmPDhQuOC66h6AEOs/XowzKsbT9srMbX71TCXP58hkpn1BqBjdmKj1+DCA/WlBETX1K5WjQHwmV0Txrg==",
"path": "system.management/6.0.0",
"hashPath": "system.management.6.0.0.nupkg.sha512"
}
}
}
\ No newline at end of file
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Siger.Client.Comm/1.0.0": {
"dependencies": {
"System.Management": "6.0.0"
},
"runtime": {
"Siger.Client.Comm.dll": {}
}
},
"System.CodeDom/6.0.0": {
"runtime": {
"lib/net6.0/System.CodeDom.dll": {
"assemblyVersion": "6.0.0.0",
"fileVersion": "6.0.21.52210"
}
}
},
"System.Management/6.0.0": {
"dependencies": {
"System.CodeDom": "6.0.0"
},
"runtime": {
"lib/net6.0/System.Management.dll": {
"assemblyVersion": "4.0.0.0",
"fileVersion": "6.0.21.52210"
}
},
"runtimeTargets": {
"runtimes/win/lib/net6.0/System.Management.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.0.0.0",
"fileVersion": "6.0.21.52210"
}
}
}
}
},
"libraries": {
"Siger.Client.Comm/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"System.CodeDom/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-CPc6tWO1LAer3IzfZufDBRL+UZQcj5uS207NHALQzP84Vp/z6wF0Aa0YZImOQY8iStY0A2zI/e3ihKNPfUm8XA==",
"path": "system.codedom/6.0.0",
"hashPath": "system.codedom.6.0.0.nupkg.sha512"
},
"System.Management/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-sHsESYMmPDhQuOC66h6AEOs/XowzKsbT9srMbX71TCXP58hkpn1BqBjdmKj1+DCA/WlBETX1K5WjQHwmV0Txrg==",
"path": "system.management/6.0.0",
"hashPath": "system.management.6.0.0.nupkg.sha512"
}
}
}
\ No newline at end of file
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Siger.Client.Comm")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Siger.Client.Comm")]
[assembly: System.Reflection.AssemblyTitleAttribute("Siger.Client.Comm")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// 由 MSBuild WriteCodeFragment 类生成。
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Siger.Client.Comm
build_property.ProjectDir = D:\Code\20220327\Voice\Siger.Client.Comm\
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
D:\Code\20220327\Siger.Client.Comm\bin\Debug\net6.0\Siger.Client.Comm.deps.json
D:\Code\20220327\Siger.Client.Comm\bin\Debug\net6.0\Siger.Client.Comm.dll
D:\Code\20220327\Siger.Client.Comm\bin\Debug\net6.0\Siger.Client.Comm.pdb
D:\Code\20220327\Siger.Client.Comm\obj\Debug\net6.0\Siger.Client.Comm.csproj.AssemblyReference.cache
D:\Code\20220327\Siger.Client.Comm\obj\Debug\net6.0\Siger.Client.Comm.GeneratedMSBuildEditorConfig.editorconfig
D:\Code\20220327\Siger.Client.Comm\obj\Debug\net6.0\Siger.Client.Comm.AssemblyInfoInputs.cache
D:\Code\20220327\Siger.Client.Comm\obj\Debug\net6.0\Siger.Client.Comm.AssemblyInfo.cs
D:\Code\20220327\Siger.Client.Comm\obj\Debug\net6.0\Siger.Client.Comm.csproj.CoreCompileInputs.cache
D:\Code\20220327\Siger.Client.Comm\obj\Debug\net6.0\Siger.Client.Comm.dll
D:\Code\20220327\Siger.Client.Comm\obj\Debug\net6.0\refint\Siger.Client.Comm.dll
D:\Code\20220327\Siger.Client.Comm\obj\Debug\net6.0\Siger.Client.Comm.pdb
D:\Code\20220327\Siger.Client.Comm\obj\Debug\net6.0\ref\Siger.Client.Comm.dll
D:\Code\20220327\Voice\Siger.Client.Comm\bin\Debug\net6.0\Siger.Client.Comm.deps.json
D:\Code\20220327\Voice\Siger.Client.Comm\bin\Debug\net6.0\Siger.Client.Comm.dll
D:\Code\20220327\Voice\Siger.Client.Comm\bin\Debug\net6.0\Siger.Client.Comm.pdb
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Debug\net6.0\Siger.Client.Comm.csproj.AssemblyReference.cache
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Debug\net6.0\Siger.Client.Comm.GeneratedMSBuildEditorConfig.editorconfig
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Debug\net6.0\Siger.Client.Comm.AssemblyInfoInputs.cache
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Debug\net6.0\Siger.Client.Comm.AssemblyInfo.cs
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Debug\net6.0\Siger.Client.Comm.csproj.CoreCompileInputs.cache
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Debug\net6.0\Siger.Client.Comm.dll
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Debug\net6.0\refint\Siger.Client.Comm.dll
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Debug\net6.0\Siger.Client.Comm.pdb
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Debug\net6.0\ref\Siger.Client.Comm.dll
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Siger.Client.Comm")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Siger.Client.Comm")]
[assembly: System.Reflection.AssemblyTitleAttribute("Siger.Client.Comm")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// 由 MSBuild WriteCodeFragment 类生成。
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Siger.Client.Comm
build_property.ProjectDir = D:\Code\20220327\Voice\Siger.Client.Comm\
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
D:\Code\20220327\Voice\Siger.Client.Comm\bin\Release\net6.0\Siger.Client.Comm.deps.json
D:\Code\20220327\Voice\Siger.Client.Comm\bin\Release\net6.0\Siger.Client.Comm.dll
D:\Code\20220327\Voice\Siger.Client.Comm\bin\Release\net6.0\Siger.Client.Comm.pdb
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Release\net6.0\Siger.Client.Comm.csproj.AssemblyReference.cache
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Release\net6.0\Siger.Client.Comm.GeneratedMSBuildEditorConfig.editorconfig
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Release\net6.0\Siger.Client.Comm.AssemblyInfoInputs.cache
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Release\net6.0\Siger.Client.Comm.AssemblyInfo.cs
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Release\net6.0\Siger.Client.Comm.csproj.CoreCompileInputs.cache
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Release\net6.0\Siger.Client.Comm.dll
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Release\net6.0\refint\Siger.Client.Comm.dll
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Release\net6.0\Siger.Client.Comm.pdb
D:\Code\20220327\Voice\Siger.Client.Comm\obj\Release\net6.0\ref\Siger.Client.Comm.dll
{
"format": 1,
"restore": {
"D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj": {}
},
"projects": {
"D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj",
"projectName": "Siger.Client.Comm",
"projectPath": "D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj",
"packagesPath": "C:\\Users\\jws\\.nuget\\packages\\",
"outputPath": "D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\jws\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://61.177.28.246:8081/repository/nuget-hosted/": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"dependencies": {
"System.Management": {
"target": "Package",
"version": "[6.0.0, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.201\\RuntimeIdentifierGraph.json"
}
}
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\jws\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.1.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\jws\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
\ No newline at end of file
{
"version": 3,
"targets": {
"net6.0": {
"System.CodeDom/6.0.0": {
"type": "package",
"compile": {
"lib/net6.0/System.CodeDom.dll": {}
},
"runtime": {
"lib/net6.0/System.CodeDom.dll": {}
},
"build": {
"buildTransitive/netcoreapp3.1/_._": {}
}
},
"System.Management/6.0.0": {
"type": "package",
"dependencies": {
"System.CodeDom": "6.0.0"
},
"compile": {
"lib/net6.0/System.Management.dll": {}
},
"runtime": {
"lib/net6.0/System.Management.dll": {}
},
"build": {
"buildTransitive/netcoreapp3.1/_._": {}
},
"runtimeTargets": {
"runtimes/win/lib/net6.0/System.Management.dll": {
"assetType": "runtime",
"rid": "win"
}
}
}
}
},
"libraries": {
"System.CodeDom/6.0.0": {
"sha512": "CPc6tWO1LAer3IzfZufDBRL+UZQcj5uS207NHALQzP84Vp/z6wF0Aa0YZImOQY8iStY0A2zI/e3ihKNPfUm8XA==",
"type": "package",
"path": "system.codedom/6.0.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"buildTransitive/netcoreapp2.0/System.CodeDom.targets",
"buildTransitive/netcoreapp3.1/_._",
"lib/net461/System.CodeDom.dll",
"lib/net461/System.CodeDom.xml",
"lib/net6.0/System.CodeDom.dll",
"lib/net6.0/System.CodeDom.xml",
"lib/netstandard2.0/System.CodeDom.dll",
"lib/netstandard2.0/System.CodeDom.xml",
"system.codedom.6.0.0.nupkg.sha512",
"system.codedom.nuspec",
"useSharedDesignerContext.txt"
]
},
"System.Management/6.0.0": {
"sha512": "sHsESYMmPDhQuOC66h6AEOs/XowzKsbT9srMbX71TCXP58hkpn1BqBjdmKj1+DCA/WlBETX1K5WjQHwmV0Txrg==",
"type": "package",
"path": "system.management/6.0.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"buildTransitive/netcoreapp2.0/System.Management.targets",
"buildTransitive/netcoreapp3.1/_._",
"lib/net461/_._",
"lib/net6.0/System.Management.dll",
"lib/net6.0/System.Management.xml",
"lib/netcoreapp3.1/System.Management.dll",
"lib/netcoreapp3.1/System.Management.xml",
"lib/netstandard2.0/System.Management.dll",
"lib/netstandard2.0/System.Management.xml",
"runtimes/win/lib/net6.0/System.Management.dll",
"runtimes/win/lib/net6.0/System.Management.xml",
"runtimes/win/lib/netcoreapp3.1/System.Management.dll",
"runtimes/win/lib/netcoreapp3.1/System.Management.xml",
"system.management.6.0.0.nupkg.sha512",
"system.management.nuspec",
"useSharedDesignerContext.txt"
]
}
},
"projectFileDependencyGroups": {
"net6.0": [
"System.Management >= 6.0.0"
]
},
"packageFolders": {
"C:\\Users\\jws\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj",
"projectName": "Siger.Client.Comm",
"projectPath": "D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj",
"packagesPath": "C:\\Users\\jws\\.nuget\\packages\\",
"outputPath": "D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\jws\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://61.177.28.246:8081/repository/nuget-hosted/": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"dependencies": {
"System.Management": {
"target": "Package",
"version": "[6.0.0, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.201\\RuntimeIdentifierGraph.json"
}
}
}
}
\ No newline at end of file
{
"version": 2,
"dgSpecHash": "ymUt1AKbzMJDRGg3h5wVZFwSWCnHgsnFDY7jVIfbJQZaHv4gKC8Jk5YsiMsV4+g7YXULuEEDvWos2u65XzaN7A==",
"success": true,
"projectFilePath": "D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj",
"expectedPackageFiles": [
"C:\\Users\\jws\\.nuget\\packages\\system.codedom\\6.0.0\\system.codedom.6.0.0.nupkg.sha512",
"C:\\Users\\jws\\.nuget\\packages\\system.management\\6.0.0\\system.management.6.0.0.nupkg.sha512"
],
"logs": []
}
\ No newline at end of file
namespace Siger.Client.License
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(192, 257);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(96, 34);
this.button1.TabIndex = 0;
this.button1.Text = "生成";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(23, 21);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(45, 17);
this.label1.TabIndex = 1;
this.label1.Text = "项目ID";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(23, 70);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(47, 17);
this.label2.TabIndex = 1;
this.label2.Text = "注册码:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(23, 157);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(47, 17);
this.label3.TabIndex = 2;
this.label3.Text = "license";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(91, 21);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(377, 23);
this.textBox1.TabIndex = 3;
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(91, 70);
this.textBox2.Multiline = true;
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(377, 62);
this.textBox2.TabIndex = 4;
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(91, 157);
this.textBox3.Multiline = true;
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(377, 80);
this.textBox3.TabIndex = 4;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(476, 303);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Button button1;
private Label label1;
private Label label2;
private Label label3;
private TextBox textBox1;
private TextBox textBox2;
private TextBox textBox3;
}
}
\ No newline at end of file
using Siger.Client.Comm;
namespace Siger.Client.License
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(textBox1.Text))
{
MessageBox.Show("ProjectID");
textBox1.SelectAll();
textBox1.Focus();
return;
}
if (string.IsNullOrEmpty(textBox2.Text))
{
MessageBox.Show("");
textBox2.SelectAll();
textBox2.Focus();
return;
}
int.TryParse(textBox1.Text, out int _projectId);
var sign = MD5Helper.Get32MD5(textBox2.Text);
textBox3.Text = sign;
}
}
}
\ No newline at end of file
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
namespace Siger.Client.License
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
Application.Run(new Form1());
}
}
}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Siger.Client.Comm\Siger.Client.Comm.csproj" />
</ItemGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Compile Update="Form1.cs">
<SubType>Form</SubType>
</Compile>
</ItemGroup>
</Project>
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Siger.Client.License/1.0.0": {
"dependencies": {
"Siger.Client.Comm": "1.0.0"
},
"runtime": {
"Siger.Client.License.dll": {}
}
},
"System.CodeDom/6.0.0": {},
"System.Management/6.0.0": {
"dependencies": {
"System.CodeDom": "6.0.0"
},
"runtime": {
"lib/net6.0/System.Management.dll": {
"assemblyVersion": "4.0.0.0",
"fileVersion": "6.0.21.52210"
}
},
"runtimeTargets": {
"runtimes/win/lib/net6.0/System.Management.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.0.0.0",
"fileVersion": "6.0.21.52210"
}
}
},
"Siger.Client.Comm/1.0.0": {
"dependencies": {
"System.Management": "6.0.0"
},
"runtime": {
"Siger.Client.Comm.dll": {}
}
}
}
},
"libraries": {
"Siger.Client.License/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"System.CodeDom/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-CPc6tWO1LAer3IzfZufDBRL+UZQcj5uS207NHALQzP84Vp/z6wF0Aa0YZImOQY8iStY0A2zI/e3ihKNPfUm8XA==",
"path": "system.codedom/6.0.0",
"hashPath": "system.codedom.6.0.0.nupkg.sha512"
},
"System.Management/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-sHsESYMmPDhQuOC66h6AEOs/XowzKsbT9srMbX71TCXP58hkpn1BqBjdmKj1+DCA/WlBETX1K5WjQHwmV0Txrg==",
"path": "system.management/6.0.0",
"hashPath": "system.management.6.0.0.nupkg.sha512"
},
"Siger.Client.Comm/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}
\ No newline at end of file
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
]
}
}
\ No newline at end of file
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Siger.Client.License/1.0.0": {
"dependencies": {
"Siger.Client.Comm": "1.0.0"
},
"runtime": {
"Siger.Client.License.dll": {}
}
},
"System.CodeDom/6.0.0": {},
"System.Management/6.0.0": {
"dependencies": {
"System.CodeDom": "6.0.0"
},
"runtime": {
"lib/net6.0/System.Management.dll": {
"assemblyVersion": "4.0.0.0",
"fileVersion": "6.0.21.52210"
}
},
"runtimeTargets": {
"runtimes/win/lib/net6.0/System.Management.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.0.0.0",
"fileVersion": "6.0.21.52210"
}
}
},
"Siger.Client.Comm/1.0.0": {
"dependencies": {
"System.Management": "6.0.0"
},
"runtime": {
"Siger.Client.Comm.dll": {}
}
}
}
},
"libraries": {
"Siger.Client.License/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"System.CodeDom/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-CPc6tWO1LAer3IzfZufDBRL+UZQcj5uS207NHALQzP84Vp/z6wF0Aa0YZImOQY8iStY0A2zI/e3ihKNPfUm8XA==",
"path": "system.codedom/6.0.0",
"hashPath": "system.codedom.6.0.0.nupkg.sha512"
},
"System.Management/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-sHsESYMmPDhQuOC66h6AEOs/XowzKsbT9srMbX71TCXP58hkpn1BqBjdmKj1+DCA/WlBETX1K5WjQHwmV0Txrg==",
"path": "system.management/6.0.0",
"hashPath": "system.management.6.0.0.nupkg.sha512"
},
"Siger.Client.Comm/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}
\ No newline at end of file
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
]
}
}
\ No newline at end of file
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Siger.Client.License")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Siger.Client.License")]
[assembly: System.Reflection.AssemblyTitleAttribute("Siger.Client.License")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]
// 由 MSBuild WriteCodeFragment 类生成。
is_global = true
build_property.ApplicationManifest =
build_property.StartupObject =
build_property.ApplicationDefaultFont =
build_property.ApplicationHighDpiMode =
build_property.ApplicationUseCompatibleTextRendering =
build_property.ApplicationVisualStyles =
build_property.TargetFramework = net6.0-windows
build_property.TargetPlatformMinVersion = 7.0
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Siger.Client.License
build_property.ProjectDir = D:\Code\20220327\Voice\Siger.Client.License\
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.Drawing;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
global using global::System.Windows.Forms;
D:\Code\20220327\Siger.Client.License\bin\Debug\net6.0-windows\Siger.Client.License.exe
D:\Code\20220327\Siger.Client.License\bin\Debug\net6.0-windows\Siger.Client.License.deps.json
D:\Code\20220327\Siger.Client.License\bin\Debug\net6.0-windows\Siger.Client.License.runtimeconfig.json
D:\Code\20220327\Siger.Client.License\bin\Debug\net6.0-windows\Siger.Client.License.dll
D:\Code\20220327\Siger.Client.License\bin\Debug\net6.0-windows\Siger.Client.License.pdb
D:\Code\20220327\Siger.Client.License\bin\Debug\net6.0-windows\System.Management.dll
D:\Code\20220327\Siger.Client.License\bin\Debug\net6.0-windows\runtimes\win\lib\net6.0\System.Management.dll
D:\Code\20220327\Siger.Client.License\bin\Debug\net6.0-windows\Siger.Client.Comm.dll
D:\Code\20220327\Siger.Client.License\bin\Debug\net6.0-windows\Siger.Client.Comm.pdb
D:\Code\20220327\Siger.Client.License\obj\Debug\net6.0-windows\Siger.Client.License.csproj.AssemblyReference.cache
D:\Code\20220327\Siger.Client.License\obj\Debug\net6.0-windows\Siger.Client.License.Form1.resources
D:\Code\20220327\Siger.Client.License\obj\Debug\net6.0-windows\Siger.Client.License.csproj.GenerateResource.cache
D:\Code\20220327\Siger.Client.License\obj\Debug\net6.0-windows\Siger.Client.License.GeneratedMSBuildEditorConfig.editorconfig
D:\Code\20220327\Siger.Client.License\obj\Debug\net6.0-windows\Siger.Client.License.AssemblyInfoInputs.cache
D:\Code\20220327\Siger.Client.License\obj\Debug\net6.0-windows\Siger.Client.License.AssemblyInfo.cs
D:\Code\20220327\Siger.Client.License\obj\Debug\net6.0-windows\Siger.Client.License.csproj.CoreCompileInputs.cache
D:\Code\20220327\Siger.Client.License\obj\Debug\net6.0-windows\Siger.Client.License.csproj.CopyComplete
D:\Code\20220327\Siger.Client.License\obj\Debug\net6.0-windows\Siger.Client.License.dll
D:\Code\20220327\Siger.Client.License\obj\Debug\net6.0-windows\refint\Siger.Client.License.dll
D:\Code\20220327\Siger.Client.License\obj\Debug\net6.0-windows\Siger.Client.License.pdb
D:\Code\20220327\Siger.Client.License\obj\Debug\net6.0-windows\Siger.Client.License.genruntimeconfig.cache
D:\Code\20220327\Siger.Client.License\obj\Debug\net6.0-windows\ref\Siger.Client.License.dll
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"System.CodeDom/6.0.0": {
"runtime": {
"lib/net6.0/System.CodeDom.dll": {
"assemblyVersion": "6.0.0.0",
"fileVersion": "6.0.21.52210"
}
}
},
"System.Management/6.0.0": {
"dependencies": {
"System.CodeDom": "6.0.0"
},
"runtime": {
"lib/net6.0/System.Management.dll": {
"assemblyVersion": "4.0.0.0",
"fileVersion": "6.0.21.52210"
}
},
"runtimeTargets": {
"runtimes/win/lib/net6.0/System.Management.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.0.0.0",
"fileVersion": "6.0.21.52210"
}
}
}
}
},
"libraries": {
"System.CodeDom/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-CPc6tWO1LAer3IzfZufDBRL+UZQcj5uS207NHALQzP84Vp/z6wF0Aa0YZImOQY8iStY0A2zI/e3ihKNPfUm8XA==",
"path": "system.codedom/6.0.0",
"hashPath": "system.codedom.6.0.0.nupkg.sha512"
},
"System.Management/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-sHsESYMmPDhQuOC66h6AEOs/XowzKsbT9srMbX71TCXP58hkpn1BqBjdmKj1+DCA/WlBETX1K5WjQHwmV0Txrg==",
"path": "system.management/6.0.0",
"hashPath": "system.management.6.0.0.nupkg.sha512"
}
}
}
\ No newline at end of file
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
],
"additionalProbingPaths": [
"C:\\Users\\jws\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\jws\\.nuget\\packages",
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configProperties": {
"Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true
}
}
}
\ No newline at end of file
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Siger.Client.License")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Siger.Client.License")]
[assembly: System.Reflection.AssemblyTitleAttribute("Siger.Client.License")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]
// 由 MSBuild WriteCodeFragment 类生成。
is_global = true
build_property.ApplicationManifest =
build_property.StartupObject =
build_property.ApplicationDefaultFont =
build_property.ApplicationHighDpiMode =
build_property.ApplicationUseCompatibleTextRendering =
build_property.ApplicationVisualStyles =
build_property.TargetFramework = net6.0-windows
build_property.TargetPlatformMinVersion = 7.0
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Siger.Client.License
build_property.ProjectDir = D:\Code\20220327\Voice\Siger.Client.License\
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.Drawing;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
global using global::System.Windows.Forms;
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"System.CodeDom/6.0.0": {
"runtime": {
"lib/net6.0/System.CodeDom.dll": {
"assemblyVersion": "6.0.0.0",
"fileVersion": "6.0.21.52210"
}
}
},
"System.Management/6.0.0": {
"dependencies": {
"System.CodeDom": "6.0.0"
},
"runtime": {
"lib/net6.0/System.Management.dll": {
"assemblyVersion": "4.0.0.0",
"fileVersion": "6.0.21.52210"
}
},
"runtimeTargets": {
"runtimes/win/lib/net6.0/System.Management.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.0.0.0",
"fileVersion": "6.0.21.52210"
}
}
}
}
},
"libraries": {
"System.CodeDom/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-CPc6tWO1LAer3IzfZufDBRL+UZQcj5uS207NHALQzP84Vp/z6wF0Aa0YZImOQY8iStY0A2zI/e3ihKNPfUm8XA==",
"path": "system.codedom/6.0.0",
"hashPath": "system.codedom.6.0.0.nupkg.sha512"
},
"System.Management/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-sHsESYMmPDhQuOC66h6AEOs/XowzKsbT9srMbX71TCXP58hkpn1BqBjdmKj1+DCA/WlBETX1K5WjQHwmV0Txrg==",
"path": "system.management/6.0.0",
"hashPath": "system.management.6.0.0.nupkg.sha512"
}
}
}
\ No newline at end of file
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
],
"additionalProbingPaths": [
"C:\\Users\\jws\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\jws\\.nuget\\packages",
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configProperties": {
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
"Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true
}
}
}
\ No newline at end of file
{
"format": 1,
"restore": {
"D:\\Code\\20220327\\Voice\\Siger.Client.License\\Siger.Client.License.csproj": {}
},
"projects": {
"D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj",
"projectName": "Siger.Client.Comm",
"projectPath": "D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj",
"packagesPath": "C:\\Users\\jws\\.nuget\\packages\\",
"outputPath": "D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\jws\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://61.177.28.246:8081/repository/nuget-hosted/": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"dependencies": {
"System.Management": {
"target": "Package",
"version": "[6.0.0, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.201\\RuntimeIdentifierGraph.json"
}
}
},
"D:\\Code\\20220327\\Voice\\Siger.Client.License\\Siger.Client.License.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Code\\20220327\\Voice\\Siger.Client.License\\Siger.Client.License.csproj",
"projectName": "Siger.Client.License",
"projectPath": "D:\\Code\\20220327\\Voice\\Siger.Client.License\\Siger.Client.License.csproj",
"packagesPath": "C:\\Users\\jws\\.nuget\\packages\\",
"outputPath": "D:\\Code\\20220327\\Voice\\Siger.Client.License\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\jws\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0-windows7.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://61.177.28.246:8081/repository/nuget-hosted/": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"projectReferences": {
"D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj": {
"projectPath": "D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
},
"Microsoft.WindowsDesktop.App.WindowsForms": {
"privateAssets": "none"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.201\\RuntimeIdentifierGraph.json"
}
}
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\jws\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.1.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\jws\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
\ No newline at end of file
{
"version": 3,
"targets": {
"net6.0-windows7.0": {
"System.CodeDom/6.0.0": {
"type": "package",
"compile": {
"lib/net6.0/System.CodeDom.dll": {}
},
"runtime": {
"lib/net6.0/System.CodeDom.dll": {}
},
"build": {
"buildTransitive/netcoreapp3.1/_._": {}
}
},
"System.Management/6.0.0": {
"type": "package",
"dependencies": {
"System.CodeDom": "6.0.0"
},
"compile": {
"lib/net6.0/System.Management.dll": {}
},
"runtime": {
"lib/net6.0/System.Management.dll": {}
},
"build": {
"buildTransitive/netcoreapp3.1/_._": {}
},
"runtimeTargets": {
"runtimes/win/lib/net6.0/System.Management.dll": {
"assetType": "runtime",
"rid": "win"
}
}
},
"Siger.Client.Comm/1.0.0": {
"type": "project",
"framework": ".NETCoreApp,Version=v6.0",
"dependencies": {
"System.Management": "6.0.0"
},
"compile": {
"bin/placeholder/Siger.Client.Comm.dll": {}
},
"runtime": {
"bin/placeholder/Siger.Client.Comm.dll": {}
}
}
}
},
"libraries": {
"System.CodeDom/6.0.0": {
"sha512": "CPc6tWO1LAer3IzfZufDBRL+UZQcj5uS207NHALQzP84Vp/z6wF0Aa0YZImOQY8iStY0A2zI/e3ihKNPfUm8XA==",
"type": "package",
"path": "system.codedom/6.0.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"buildTransitive/netcoreapp2.0/System.CodeDom.targets",
"buildTransitive/netcoreapp3.1/_._",
"lib/net461/System.CodeDom.dll",
"lib/net461/System.CodeDom.xml",
"lib/net6.0/System.CodeDom.dll",
"lib/net6.0/System.CodeDom.xml",
"lib/netstandard2.0/System.CodeDom.dll",
"lib/netstandard2.0/System.CodeDom.xml",
"system.codedom.6.0.0.nupkg.sha512",
"system.codedom.nuspec",
"useSharedDesignerContext.txt"
]
},
"System.Management/6.0.0": {
"sha512": "sHsESYMmPDhQuOC66h6AEOs/XowzKsbT9srMbX71TCXP58hkpn1BqBjdmKj1+DCA/WlBETX1K5WjQHwmV0Txrg==",
"type": "package",
"path": "system.management/6.0.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"buildTransitive/netcoreapp2.0/System.Management.targets",
"buildTransitive/netcoreapp3.1/_._",
"lib/net461/_._",
"lib/net6.0/System.Management.dll",
"lib/net6.0/System.Management.xml",
"lib/netcoreapp3.1/System.Management.dll",
"lib/netcoreapp3.1/System.Management.xml",
"lib/netstandard2.0/System.Management.dll",
"lib/netstandard2.0/System.Management.xml",
"runtimes/win/lib/net6.0/System.Management.dll",
"runtimes/win/lib/net6.0/System.Management.xml",
"runtimes/win/lib/netcoreapp3.1/System.Management.dll",
"runtimes/win/lib/netcoreapp3.1/System.Management.xml",
"system.management.6.0.0.nupkg.sha512",
"system.management.nuspec",
"useSharedDesignerContext.txt"
]
},
"Siger.Client.Comm/1.0.0": {
"type": "project",
"path": "../Siger.Client.Comm/Siger.Client.Comm.csproj",
"msbuildProject": "../Siger.Client.Comm/Siger.Client.Comm.csproj"
}
},
"projectFileDependencyGroups": {
"net6.0-windows7.0": [
"Siger.Client.Comm >= 1.0.0"
]
},
"packageFolders": {
"C:\\Users\\jws\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Code\\20220327\\Voice\\Siger.Client.License\\Siger.Client.License.csproj",
"projectName": "Siger.Client.License",
"projectPath": "D:\\Code\\20220327\\Voice\\Siger.Client.License\\Siger.Client.License.csproj",
"packagesPath": "C:\\Users\\jws\\.nuget\\packages\\",
"outputPath": "D:\\Code\\20220327\\Voice\\Siger.Client.License\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\jws\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0-windows7.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://61.177.28.246:8081/repository/nuget-hosted/": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"projectReferences": {
"D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj": {
"projectPath": "D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
},
"Microsoft.WindowsDesktop.App.WindowsForms": {
"privateAssets": "none"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.201\\RuntimeIdentifierGraph.json"
}
}
}
}
\ No newline at end of file
{
"version": 2,
"dgSpecHash": "rOWlgF/wGuPHha+lmXRCbCim5SzjwxrdiBx1j2+3Tii/4giJA9QEtcLjXUQAuw57zoxJDnzFOs3zN4aumRCbeQ==",
"success": true,
"projectFilePath": "D:\\Code\\20220327\\Voice\\Siger.Client.License\\Siger.Client.License.csproj",
"expectedPackageFiles": [
"C:\\Users\\jws\\.nuget\\packages\\system.codedom\\6.0.0\\system.codedom.6.0.0.nupkg.sha512",
"C:\\Users\\jws\\.nuget\\packages\\system.management\\6.0.0\\system.management.6.0.0.nupkg.sha512"
],
"logs": []
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<appSettings>
<add key="ProjectId" value="1"/>
<add key="CompanyDesc" value="xxx 公司"/>
<add key="Factory" value="1"/>
<add key="Url" value="http://192.1681.1.1"/>
<add key="Module" value="1"/>
<add key="RedisConn" value="172.8.10.197:6379,password=ky701@YH.com,ssl=false,writeBuffer=10240,poolsize=1,defaultDatabase=1"></add>
</appSettings>
<log4net>
<root>
<!--<level value="ERROR"/>-->
<appender-ref ref="RollingFileAppender"/>
</root>
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
<!--日志文件名开头-->
<file value="logs/Log.log"/>
<!--多线程时采用最小锁定-->
<lockingModel type="log4net.Appender.FileAppender+MinimalLock"/>
<!--日期的格式,每天换一个文件记录,如不设置则永远只记录一天的日志,需设置-->
<datePattern value="yyyy.MM.dd"/>
<!--是否追加到文件,默认为true,通常无需设置-->
<appendToFile value="true"/>
<RollingStyle value="Size"/>
<MaxSizeRollBackups value="10"/>
<maximumFileSize value="2MB"/>
<!--日志格式-->
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%t]%-5p %c - %m%n"/>
</layout>
</appender>
</log4net>
</configuration>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Siger.Voice
{
/// <summary>
/// 全局配置
/// </summary>
public class BaseConfig
{
/// <summary>
/// 后端连接
/// </summary>
public string Url { get; set; }
/// <summary>
/// 项目ID
/// </summary>
public int ProjectId { get; set; }
/// <summary>
/// 公司描述
/// </summary>
public string CompanyDesc { get; set; }
public string Factory { get; set; }
/// <summary>
///
/// </summary>
public string RedisConn { get; set; }
public int Module { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Siger.Voice
{
public class CNCEquipmentState
{
[DataMember(Name = "mn")]
public string mn { get; set; }
[DataMember(Name = "status")]
public int Status { get; set; }
[DataMember(Name = "sl1")]
public string SpindleLoad1 { get; set; }
[DataMember(Name = "ss1")]
public string SpindleSpeed1 { get; set; }
[DataMember(Name = "sl2")]
public string SpindleLoad2 { get; set; }
[DataMember(Name = "ss2")]
public string SpindleSpeed2 { get; set; }
[DataMember(Name = "sl3")]
public string SpindleLoad3 { get; set; }
[DataMember(Name = "ss3")]
public string SpindleSpeed3 { get; set; }
[DataMember(Name = "sl4")]
public string SpindleLoad4 { get; set; }
[DataMember(Name = "ss4")]
public string SpindleSpeed4 { get; set; }
/// <summary>
/// 进给速度 feedRate
/// </summary>
[DataMember(Name = "fre")]
public string FeedSpeed { get; set; }
/// <summary>
/// 进给倍率 feedSpeedRatio
/// </summary>
[DataMember(Name = "fro")]
public string FeedRatio { get; set; }
/// <summary>
/// 主轴倍率 spindleSpeedRatio
/// </summary>
[DataMember(Name = "sro")]
public string SpindleRatio { get; set; }
[DataMember(Name = "pn")]
public string PN { get; set; }
[DataMember(Name = "spn")]
public string SPN { get; set; }
[DataMember(Name = "time")]
public string Time { get; set; }
[DataMember(Name = "lastUpdateTime")]
public string LastUpdateTime { get; set; }
/// <summary>
/// 设备刀具号()
/// </summary>
[DataMember(Name = "tn")]
public int ToolNo { get; set; }
/// <summary>
/// 设备刀具额定寿命
/// </summary>
//[DataMember(Name = "tl")]
//public int ToolLife { get; set; }
///// <summary>
///// 设备刀具使用寿命
///// </summary>
//[DataMember(Name = "tc")]
//public int ToolUage { get; set; }
//[DataMember(Name = "tn1")]
//public int Tn1 { get; set; }
//[DataMember(Name = "tn2")]
//public int Tn2 { get; set; }
//[DataMember(Name = "tn3")]
//public int Tn3 { get; set; }
//[DataMember(Name = "tn4")]
//public int Tn4 { get; set; }
/// <summary>
/// 开始时间
/// </summary>
[DataMember(Name = "dataTime")]
public string dataTime { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Siger.Voice
{
public class Comm
{
public enum MachineRunningStatus
{
[Description("关机")]
Shutdown,
[Description("运行")]
Running,
[Description("调试")]
Debugging,
[Description("空闲")]
Free,
[Description("故障")]
Fault,
[Description("换线调试")]
ChangeDebugging,
[Description("等待")]
Waiting = 7
}
}
}
namespace Siger.Voice
{
partial class FrmMain
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.设置ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.规则设置ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.测试ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.测试语音ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.关于ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.关于我们ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
this.toolStripStatusLabel2 = new System.Windows.Forms.ToolStripStatusLabel();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.label1 = new System.Windows.Forms.Label();
this.menuStrip1.SuspendLayout();
this.statusStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.SuspendLayout();
//
// menuStrip1
//
this.menuStrip1.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.设置ToolStripMenuItem,
this.测试ToolStripMenuItem,
this.关于ToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(1033, 28);
this.menuStrip1.TabIndex = 1;
this.menuStrip1.Text = "menuStrip1";
//
// 设置ToolStripMenuItem
//
this.设置ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.规则设置ToolStripMenuItem});
this.设置ToolStripMenuItem.Name = "设置ToolStripMenuItem";
this.设置ToolStripMenuItem.Size = new System.Drawing.Size(49, 24);
this.设置ToolStripMenuItem.Text = "设置";
//
// 规则设置ToolStripMenuItem
//
this.规则设置ToolStripMenuItem.Name = "规则设置ToolStripMenuItem";
this.规则设置ToolStripMenuItem.Size = new System.Drawing.Size(134, 24);
this.规则设置ToolStripMenuItem.Text = "规则设置";
this.规则设置ToolStripMenuItem.Click += new System.EventHandler(this.规则设置ToolStripMenuItem_Click);
//
// 测试ToolStripMenuItem
//
this.测试ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.测试语音ToolStripMenuItem});
this.测试ToolStripMenuItem.Name = "测试ToolStripMenuItem";
this.测试ToolStripMenuItem.Size = new System.Drawing.Size(49, 24);
this.测试ToolStripMenuItem.Text = "注册";
//
// 测试语音ToolStripMenuItem
//
this.测试语音ToolStripMenuItem.Name = "测试语音ToolStripMenuItem";
this.测试语音ToolStripMenuItem.Size = new System.Drawing.Size(106, 24);
this.测试语音ToolStripMenuItem.Text = "授权";
this.测试语音ToolStripMenuItem.Click += new System.EventHandler(this.测试语音ToolStripMenuItem_Click);
//
// 关于ToolStripMenuItem
//
this.关于ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.关于我们ToolStripMenuItem});
this.关于ToolStripMenuItem.Name = "关于ToolStripMenuItem";
this.关于ToolStripMenuItem.Size = new System.Drawing.Size(49, 24);
this.关于ToolStripMenuItem.Text = "关于";
//
// 关于我们ToolStripMenuItem
//
this.关于我们ToolStripMenuItem.Name = "关于我们ToolStripMenuItem";
this.关于我们ToolStripMenuItem.Size = new System.Drawing.Size(134, 24);
this.关于我们ToolStripMenuItem.Text = "关于我们";
this.关于我们ToolStripMenuItem.Click += new System.EventHandler(this.关于我们ToolStripMenuItem_Click);
//
// statusStrip1
//
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripStatusLabel1,
this.toolStripStatusLabel2});
this.statusStrip1.Location = new System.Drawing.Point(0, 538);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Size = new System.Drawing.Size(1033, 22);
this.statusStrip1.TabIndex = 2;
this.statusStrip1.Text = "statusStrip1";
//
// toolStripStatusLabel1
//
this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
this.toolStripStatusLabel1.Size = new System.Drawing.Size(12, 17);
this.toolStripStatusLabel1.Text = " ";
//
// toolStripStatusLabel2
//
this.toolStripStatusLabel2.Name = "toolStripStatusLabel2";
this.toolStripStatusLabel2.Size = new System.Drawing.Size(0, 17);
//
// splitContainer1
//
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
this.splitContainer1.Location = new System.Drawing.Point(0, 28);
this.splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.label1);
this.splitContainer1.Size = new System.Drawing.Size(1033, 510);
this.splitContainer1.SplitterDistance = 984;
this.splitContainer1.SplitterWidth = 1;
this.splitContainer1.TabIndex = 3;
//
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.label1.Location = new System.Drawing.Point(383, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(15, 21);
this.label1.TabIndex = 1;
this.label1.Text = " ";
//
// FrmMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1033, 560);
this.Controls.Add(this.splitContainer1);
this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.menuStrip1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MainMenuStrip = this.menuStrip1;
this.Name = "FrmMain";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "语音播报";
this.Load += new System.EventHandler(this.FrmMain_Load);
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private MenuStrip menuStrip1;
private ToolStripMenuItem 设置ToolStripMenuItem;
private ToolStripMenuItem 规则设置ToolStripMenuItem;
private ToolStripMenuItem 测试ToolStripMenuItem;
private ToolStripMenuItem 测试语音ToolStripMenuItem;
private ToolStripMenuItem 关于ToolStripMenuItem;
private ToolStripMenuItem 关于我们ToolStripMenuItem;
private StatusStrip statusStrip1;
private ToolStripStatusLabel toolStripStatusLabel1;
private ToolStripStatusLabel toolStripStatusLabel2;
private SplitContainer splitContainer1;
private Label label1;
}
}
\ No newline at end of file
using log4net;
using Newtonsoft.Json;
using Siger.Voice.Helper;
using static Siger.Voice.Comm;
namespace Siger.Voice
{
public partial class FrmMain : Form
{
public FrmMain(BaseConfig config,TempData data,string dataPath, MachineMapping mapping)
{
InitializeComponent();
_config = config;
_data = data;
_dataPath = dataPath;
this.mapping = mapping;
}
private static readonly ILog log = LogManager.GetLogger(typeof(FrmMain).Name);
private readonly BaseConfig _config;
private readonly TempData _data;
private readonly string _dataPath;
private readonly MachineMapping mapping;
private bool systemValidate = false;
delegate void SetTextBoxMsgDel(Label txt, string num);
private void 测试语音ToolStripMenuItem_Click(object sender, EventArgs e)
{
FrmTesting frmTesting = new FrmTesting(_config,systemValidate);
frmTesting.ShowDialog();
}
private void FrmMain_Load(object sender, EventArgs e)
{
if (!LinsenceHelper.SystemValidate(_config.ProjectId))
{
this.Text = $"{_config.CompanyDesc} 语音播报系统V1.0 (未授权)";
this.toolStripStatusLabel1.Text = $"系统未授权, 监听失败......";
return;
}
systemValidate = true;
this.Text = $"{_config.CompanyDesc} 语音播报系统V2.1";
this.toolStripStatusLabel1.Text = $"正在监听......";
if (string.IsNullOrEmpty( _config.RedisConn))
{
MessageBox.Show("Redis 连接未配置", "提示", MessageBoxButtons.OK);
return;
}
try
{
var thread = new Thread(Process)
{
IsBackground = true
};
thread.Start();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
private void 规则设置ToolStripMenuItem_Click(object sender, EventArgs e)
{
FrmRulesSetting frmRulesSetting = new FrmRulesSetting(_data, _dataPath);
frmRulesSetting.ShowDialog();
}
private void 关于我们ToolStripMenuItem_Click(object sender, EventArgs e)
{
MessageBox.Show( "由SigerData 提供支持", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void Process()
{
while (true)
{
Dowork(_data);
Thread.Sleep(1000 * 60 * _data.Time); // 1分钟
}
}
void Dowork(TempData config)
{
if (!CheckWeek(config.Date))
return;
if (!CheckTime(config.STime, config.ETime))
return;
if (!CheckTime(config.STime2, config.ETime2))
return;
if (_config.Module==1)
{
MessageVoice(_config, _data);
}
}
void MessageVoice(BaseConfig config, TempData setting)
{
try
{
var url = string.Format("{0}/config/Broadcast/GetPlayContentList?factory={1}", config.Url, config.Factory);
var resultstr = HttpClientHelper.HttpGet(url);
if (string.IsNullOrEmpty(resultstr))
{
log.Info("GetMessage str is null");
return;
}
var responseObj = JsonConvert.DeserializeObject<MessageResponseObj>(resultstr);
if (responseObj == null)
{
log.Info("responseObj str is null");
return;
}
if (responseObj.ret!=1)
{
log.Info($"GetMessage fail:{resultstr}");
return;
}
if (!responseObj.data.Any())
{
log.Info($"GetMessage responseObj.data.not data");
return;
}
foreach (var msg in responseObj.data)
{
for (int i = 0; i <= setting.Repeat; i++)
{
Voice.Readcontext(msg.content, setting.Speed);
Thread.Sleep(1000 * 1);
}
}
}
catch (Exception ex)
{
log.Error(ex.Message);
}
}
void MachineMonitor(TempData config)
{
var redis = new CSRedisHelper(_config.RedisConn);
try
{
var machineState = redis.GetCNCEquipmentStates();
var durationTime = config.Time;
var effectiveMachines = machineState.Where(f => f.mn.ToInt() != 0 && f.Status > 1).ToList();
if (!effectiveMachines.Any())
return;
foreach (var state in effectiveMachines)
{
DateTime.TryParse(state.dataTime, out DateTime startTime);
DateTime.TryParse(state.Time, out DateTime endTime);
if (startTime > endTime)
continue;
var machineStatus = (MachineRunningStatus)state.Status;
if (!CheckMachineStatus(config.MachineStatus, machineStatus))
{
continue;
}
var duraMin = (endTime - startTime).Minutes;
var message = Trigger(config.Time, duraMin, state.mn, machineStatus, config.Template);
if (string.IsNullOrEmpty(message))
{
continue;
}
//log.Info(message);
SetTextMgs(label1, message);
Voice.Readcontext(message, config.Speed);
SetTextMgs(label1, "");
}
}
catch (Exception ex)
{
SetTextMgs(label1, "获取状态发生错误 详情请查询LOG");
log.Error(ex.Message);
}
}
string Trigger(int durationTime,int min,string machineId, MachineRunningStatus status,string templateMsg)
{
if (min>= durationTime)
{
if (!mapping.Machine.Any())
{
return "设备未维护";
}
int.TryParse(machineId, out int mid);
var curMachine=mapping.Machine.FirstOrDefault(f=>f.Mid== mid);
if (curMachine==null)
{
return "";
}
var result = templateMsg.Replace("{mid}", curMachine.Name);
result = result.Replace("{status}", EnumHelper.GetEnumDesc(status));
result = result.Replace("{min}", min.ToStr());
return result;
}
return string.Empty;
}
/// <summary>
/// 检查生效日期
/// </summary>
/// <param name="week"></param>
/// <returns></returns>
bool CheckWeek(WeekDate week)
{
var currDate = DateTime.Now.DayOfWeek;
switch (currDate)
{
case DayOfWeek.Sunday:
{
if (week.Sun==1)
return true;
break;
}
case DayOfWeek.Monday:
{
if (week.Mon == 1)
return true;
break;
}
case DayOfWeek.Tuesday:
{
if (week.Tues == 1)
return true;
break;
}
case DayOfWeek.Wednesday:
{
if (week.Wed == 1)
return true;
break;
}
case DayOfWeek.Thursday:
{
if (week.Thur == 1)
return true;
break;
}
case DayOfWeek.Friday:
{
if (week.Fri == 1)
return true;
break;
}
case DayOfWeek.Saturday:
{
if (week.Sat == 1)
return true;
break;
}
default:
return false;
}
return false;
}
/// <summary>
/// 检查静音时间
/// </summary>
/// <param name="stime"></param>
/// <param name="etime"></param>
/// <returns></returns>
bool CheckTime(int stime,int etime)
{
var hour=DateTime.Now.Hour;
if (hour>=stime && hour<=etime)
{
return false;
}
return true;
}
bool CheckMachineStatus (MachineStatus machineStatus, MachineRunningStatus currentStatus)
{
var result = false;
switch (currentStatus)
{
case MachineRunningStatus.Shutdown:
{
if (machineStatus.Down == 1)
{
result = true;
}
break;
}
case MachineRunningStatus.Running:
{
if (machineStatus.Running == 1)
{
result = true;
}
break;
}
case MachineRunningStatus.Debugging:
{
if (machineStatus.Debug == 1)
{
result = true;
}
break;
}
case MachineRunningStatus.Free:
{
if (machineStatus.Free == 1)
{
result = true;
}
break;
}
case MachineRunningStatus.Fault:
{
if (machineStatus.Fault == 1)
{
result = true;
}
break;
}
}
return result;
}
private void SetTextMgs(Label txt, string msg)
{
//判断控件是否在使用
if (txt.InvokeRequired)
{
//在使用用委托调用自己
SetTextBoxMsgDel stbd = SetTextMgs;
Invoke(stbd, new object[] { txt, msg });
}
else
{
//没在使用去改变
txt.Text = msg;
}
}
}
}
\ No newline at end of file
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>137, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAABILAAASCwAAAAAAAAAA
AAD8/Pz//f39//X19f/v7+//8fHx//z8/P/9/fz/8/Ty/+/w8v/49fz/+/r2/+Xtzf/O35//w9yE/7zW
dv+62G//udZv/73Xd/+91H//yNmX/+Xszv/7+vn/+Pb9//Dv8//09PP//v39//v7+//x8fH/7+/v//X1
9f/9/f3//Pz8////////////9PT0/+vr6//u7u7//v79///////39/r/5ere/8/go/+913f/rs9a/67P
VP+v0Fb/sNFY/7DRWP+y0lr/qcpQ/57AQv+dwUL/nsFJ/7DNaP/K2qP/6erh//j3+/////7//v7+/+7u
7v/r6+v/9PT0////////////+Pj4//j4+P/29vb/9PX1//L18v/5+fv/+fr4/9Xlqv+y02H/rM9S/6/P
WP+z0lz/s9Ne/7PSXf+y0l3/tNNe/6vLVP+hwUr/o8RL/6PDTP+hxEr/ncFD/5u/Pv+kxVT/0OGs//36
/P/4+fn/8/Xz//X19f/29vb/+Pj4//j4+P/t7e3/6+vr//j4+P///////v///+jr4P+91oH/rM5Q/7LS
W/+z017/s9Jd/7LSXP+y0lz/stJc/7PTXf+ry1T/ocJI/6LDSv+iw0r/osNK/6LDSv+jxEv/pMRN/6DC
SP+Yvj3/uM59/+vs4//+/v////////j4+P/r6+v/7e3t/+/v7//u7u//9vf0///////y9uP/t9Vs/6/Q
VP+z01//stJd/7LSXP+y0lz/stJc/7LSXP+z013/qspT/6HBSf+iw0r/osNK/6LDSv+iw0r/osNK/6LD
Sv+iw0r/o8NL/6TETf+cwED/q8dl//P26P//////9vf3/+7u7v/v7+///f39//3+/P/29vj/6e3e/7fU
bv+t0Ff/s9Ng/7LSXP+y0lz/stJc/7LSXP+y0lz/s9Nd/6rKVP+hwkn/osNK/6LDSv+iw0r/osNK/6LD
Sv+iw0r/osNK/6LDSv+iw0r/osNK/6PETv+bwEL/rspn/+zu5P/19vf//f39//39/f////7///////X1
8/+51Xn/rdBU/7PTX/+y0lz/stJc/7LSXP+y0lz/stJc/7PTXf+qylP/ocFJ/6LDSv+iw0r/osNK/6LD
Sv+iw0r/osNK/6LDSv+iw0r/osNK/6LDSv+iw0r/ocNK/6PETv+bvkD/tcx4//r2+f/////////+//T0
8//59/3/0eGm/63NU/+002D/stJc/7LSXP+y0lz/stJc/7LSXP+z013/qspT/6HCSP+iw0r/osNK/6PD
S/+jxEz/osNK/6LDSv+iw0r/osNK/6LDSv+iw0r/osNK/6LDSv+iw0r/osNK/6PFTP+bwED/0t+v//n4
/P/09PL/7u7w/+fq2f+x0Fz/s9Jc/7LSXP+y0lz/stJc/7LSXP+y0lz/s9Nd/6rKU/+hwUn/osNK/6LD
Sv+hw0z/nsFE/57BQv+jwkn/osNK/6LDSv+iw0r/osNK/6LDSv+hw0r/ocRK/6LESv+iwkv/osNL/6DC
R/+kxFT/6erh/+7t8f/08vr/y96a/63QUv+z017/stJc/7LSXP+y0lz/stJc/7PTXf+qylP/ocJJ/6LD
Sv+iw0r/o8NP/57AO/++04b/z9qt/6DBR/+ixEr/osNK/6LDSv+iw0r/o8NM/6PFTP+dwUf/nr9H/6HB
Sv+iwkv/pMRN/5vAP//K2aD/9vP9//b37/+21Gv/sNFY/7LSXf+y0lz/stJc/7LSXP+z013/qcpS/6HB
Sf+iw0r/ocNL/6DETP+pwz7/hL5n/8Xq8P/w6+P/n8FN/6LDSf+iw0r/osNL/6TDTP+fwET/lrs2/8HV
h//n7dH/ocFM/6LCSf+jxEz/nsFD/67MZf/8+/j/4OvB/63PWf+z013/stJc/7LSXP+z0l7/tNNf/6rK
Vv+iwkv/osRM/6HDTf+kw0b/pcBB/4XDgf9OzO3/uu3+/+zn1v+dwFD/osNJ/6PDS/+hwkf/nMA9/7zT
ff/I2pb/rclo///////T4a3/mr4+/6TETf+jw0v/ncBH/+TszP/F24//rdBW/7PSXv+y0lz/sdFf/6/S
V/+lyEn/ncA//53BQv+iwUP/p8E//5XAWf9txLL/V9P8/1DU+P+87fr/7+jW/6K/Rf+hxEn/nsJH/6vI
YP+mxVn/yNqU//////+kxFn/y92b//z7/P+lxFL/ocNH/6PETf+dwEH/xNeT/7nWdf+w0Vn/s9Jd/7LS
Xf+x0lj/t853/7bJe/+2yXv/tst5/5fFgf9txK3/V8/r/1nV//9d1/j/UdL3/7zu9//q6OL/jsJ8/6HD
TP+avTz/1uOy//P26P+evkr/9Pfq/9fjs/+kw1X//////7/Vhf+cvz//pMRO/5/BQ/+0znT/utds/7DR
Wv+y0l7/s9FW/6LTkP/v8fn/+vj8//b2/f//+/v/muL6/0nT//9d1/z/W9X3/13V+v9Q0/j/ve31/+fs
7P9Y1///cdC+/52/P/+z0HD//////6rHYv/O3qL/8fTn/5+/Sv/4+/H/y9yf/5u/PP+kxE//oMFH/6nH
Xf+002D/stFc/7LTX/+x0FL/kde7/+75///5+PX/9vj3///89v+f4/T/UdL3/1zV+P9a1fn/XNb5/1DS
+P++7fb/5+zq/13U8/9V2P//j8hz/6PBR//3+vn/sMpv/73Tif/0+u7/oMFG//H25v/Y5rH/m747/6PC
Tv+kxE3/sNFa/7PTYP+w0Vz/stNe/7LQUv+O17z/7vb///n39P/19/b///v1/53j9P9R0vf/XNb4/1rV
+f9c1fr/UNP4/77t9v/n7Ov/XdXz/1fX//+KxGz/v9J0//////+qyGH/1OWo/+/z4f+ewEb/+vzz/8vd
oP+avTr/pcRQ/7DQWf+z01//uNZr/6/RWv+y0l7/stFV/6PVk//y9/7//vv+//n6/////v7/m+T6/0rT
//9c1vv/W9X3/1zW+f9Q0/j/vu31/+fs6/9a1///bc/A/52+Pf/l7c7/6vLZ/6jLU//5+/D/0uGo/6bG
WP//////vdN//56/Q/+y0V//stJa/7XTa/+813b/sNBZ/7LSXf+y0lz/tdFX/8HZfv/G3Iz/xdqL/8nb
jP+l14//eNO8/17V8f9V1v//XdX3/1HS9v+87fn/7Onf/47Ed/+iw0v/n8BB/7fOdf+31Wv/2Oew////
//+oyVv/1+at//n58/+lxVD/sNBZ/7PTX/+v0Ff/wNmB/8bajv+v0FT/stJe/7LSXP+x0l3/r9BV/63P
U/+uz1T/rc9U/7PQVP+30FP/pNFu/3zSvf9a1f//UNL4/73u+P/t6dX/ob9G/6HCR/+mx0//rs5X/6zO
Uf/b6LP/0OCi/7nTdP//////zd2e/6rMUP+01F//s9Jf/67PVP/N3pz/4Oy+/63PWP+z0l7/stJc/7LS
XP+z0l7/s9Ne/7TSXv+y0l//sdJf/7DSX/+10lj/t9BU/5LRlP9R0/D/uO3+/+3o1f+cv07/pcZO/7LR
XP+z01//stJd/6/PV/+pzE//5+/M/+zx2f+uzFn/s9Jd/7LSXP+z0l3/rs5d/+nx0f/3+PD/t9Rv/7DR
WP+y0l3/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7HSXf+w0l//u9BS/5LPd//G7vP/7+jh/6LD
Uv+y0lv/s9Jd/7LSXP+y0lz/s9Ne/7LRWv+51Wz/ttRn/7DRWf+y0lz/s9Jd/6/QV/++2Hf//v37//b1
+v/M35r/rM9T/7LSX/+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/sdJd/7LSXP+x01//rtBQ/83d
lP/U37L/rc9Y/7PTXf+y0lz/stJc/7LSXP+y0lz/s9Jd/7HRWf+w0Vr/s9Nc/7LSXP+z017/rc9S/9Ph
qv/39Pv/7u7w/+fp1/+v0F3/sNJc/7LSXf+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7HS
W/+w0l//rdFW/6zQVv+x0l3/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJd/7PSXf+y0lz/stJd/7HR
Wv+00mb/5+rj/+vt7v/z9PH/+fb8/9Hhpv+tz1L/tNNf/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+y0lz/stJc/7HSXP+y0l3/stNd/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+00l//rdFT/9nntv/39vz/8/Ty/////v//////9fT1/7vVef+u0FT/s9Jf/7LSXP+y0lz/stJc/7LS
XP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+y0lz/tNNf/6zPUv++2IX/9vb5//////////7//v3+//7//P/29fj/6O3c/7bVbf+v0VT/tNNf/7LS
XP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+y0lz/stJc/7XTX/+vz1T/udd1/+rt5f/29vb//v7+//39/f/w8PD/7+/u//f49f//////8Pbj/7XU
bP+u0FT/tNNf/7LSXP+y0lv/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+y0lz/stJc/7LSXf+0017/rc9U/7nVdP/09+r///////f39v/u7u//8PDw/+3t7f/r6+v/9/f4////
/////v//5+3c/77Xgf+szlH/sdFb/7PSX/+z0l3/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+y0lz/stJc/7PSXf+z0l7/sdFa/6vPUf/A2In/6+zn///+////////+Pj4/+vr6//t7e3/9vb2//X1
9f/29vb/+Pj3//b39P/39vn/9/b3/9Xkqv+00WT/rc9R/6/RVv+y01z/stNd/7LSXf+y0l3/stJc/7LS
Xf+y0l3/stJd/7PSXv+y0lz/rtBW/63PUf+202f/2Oa0//f3+f/29fb/9vb1//j4+P/39/f/9fX1//X1
9f////////////T09P/r6+v/7u/u//7+/f//////+ff6/+ns3f/N3qT/vNh1/67QWv+vz1f/r9FW/67R
Wf+u0Fr/rtBZ/67RWf+v0Fb/rdBU/67PXf+913j/1OKs/+vs4v/49/v///////7+/f/u7+7/6+vr//T0
9P//////////////////////9PT0/+3t7f/w8PD//f3+///////z9PL/6+7v//T1+f/8/Pn/5/DO/83e
nv+91n7/udVy/7zZcP+92nL/utV0/8HZhP/P4J//6fDS//38+f/19Pr/7e3u//T08v///////f39/+/v
7//t7e3/9fX1///////+/v7/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
</value>
</data>
</root>
\ No newline at end of file
namespace Siger.Voice
{
partial class FrmRulesSetting
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmRulesSetting));
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.checkBox4 = new System.Windows.Forms.CheckBox();
this.checkBox5 = new System.Windows.Forms.CheckBox();
this.checkBox6 = new System.Windows.Forms.CheckBox();
this.checkBox7 = new System.Windows.Forms.CheckBox();
this.button1 = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.label8 = new System.Windows.Forms.Label();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.comboBox3 = new System.Windows.Forms.ComboBox();
this.checkBox8 = new System.Windows.Forms.CheckBox();
this.label9 = new System.Windows.Forms.Label();
this.checkBox9 = new System.Windows.Forms.CheckBox();
this.checkBox10 = new System.Windows.Forms.CheckBox();
this.checkBox11 = new System.Windows.Forms.CheckBox();
this.checkBox12 = new System.Windows.Forms.CheckBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.comboBox5 = new System.Windows.Forms.ComboBox();
this.comboBox4 = new System.Windows.Forms.ComboBox();
this.label10 = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.label11 = new System.Windows.Forms.Label();
this.comboBox6 = new System.Windows.Forms.ComboBox();
this.label12 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(28, 15);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(59, 17);
this.label1.TabIndex = 0;
this.label1.Text = "播报文案:";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(242, 3);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(391, 112);
this.textBox1.TabIndex = 1;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(28, 250);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(59, 17);
this.label2.TabIndex = 2;
this.label2.Text = "播报日期:";
this.label2.Click += new System.EventHandler(this.label2_Click);
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(103, 249);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(51, 21);
this.checkBox1.TabIndex = 4;
this.checkBox1.Text = "周一";
this.checkBox1.UseVisualStyleBackColor = true;
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
//
// checkBox2
//
this.checkBox2.AutoSize = true;
this.checkBox2.Location = new System.Drawing.Point(165, 249);
this.checkBox2.Name = "checkBox2";
this.checkBox2.Size = new System.Drawing.Size(51, 21);
this.checkBox2.TabIndex = 4;
this.checkBox2.Text = "周二";
this.checkBox2.UseVisualStyleBackColor = true;
this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged);
//
// checkBox3
//
this.checkBox3.AutoSize = true;
this.checkBox3.Location = new System.Drawing.Point(227, 249);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(51, 21);
this.checkBox3.TabIndex = 4;
this.checkBox3.Text = "周三";
this.checkBox3.UseVisualStyleBackColor = true;
this.checkBox3.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged);
//
// checkBox4
//
this.checkBox4.AutoSize = true;
this.checkBox4.Location = new System.Drawing.Point(289, 249);
this.checkBox4.Name = "checkBox4";
this.checkBox4.Size = new System.Drawing.Size(51, 21);
this.checkBox4.TabIndex = 4;
this.checkBox4.Text = "周四";
this.checkBox4.UseVisualStyleBackColor = true;
this.checkBox4.CheckedChanged += new System.EventHandler(this.checkBox4_CheckedChanged);
//
// checkBox5
//
this.checkBox5.AutoSize = true;
this.checkBox5.Location = new System.Drawing.Point(351, 249);
this.checkBox5.Name = "checkBox5";
this.checkBox5.Size = new System.Drawing.Size(51, 21);
this.checkBox5.TabIndex = 4;
this.checkBox5.Text = "周五";
this.checkBox5.UseVisualStyleBackColor = true;
this.checkBox5.CheckedChanged += new System.EventHandler(this.checkBox5_CheckedChanged);
//
// checkBox6
//
this.checkBox6.AutoSize = true;
this.checkBox6.Location = new System.Drawing.Point(103, 276);
this.checkBox6.Name = "checkBox6";
this.checkBox6.Size = new System.Drawing.Size(51, 21);
this.checkBox6.TabIndex = 4;
this.checkBox6.Text = "周六";
this.checkBox6.UseVisualStyleBackColor = true;
this.checkBox6.CheckedChanged += new System.EventHandler(this.checkBox6_CheckedChanged);
//
// checkBox7
//
this.checkBox7.AutoSize = true;
this.checkBox7.Location = new System.Drawing.Point(165, 276);
this.checkBox7.Name = "checkBox7";
this.checkBox7.Size = new System.Drawing.Size(51, 21);
this.checkBox7.TabIndex = 4;
this.checkBox7.Text = "周日";
this.checkBox7.UseVisualStyleBackColor = true;
this.checkBox7.CheckedChanged += new System.EventHandler(this.checkBox7_CheckedChanged);
//
// button1
//
this.button1.Location = new System.Drawing.Point(502, 314);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(131, 42);
this.button1.TabIndex = 6;
this.button1.Text = "保存";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(28, 305);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(59, 17);
this.label3.TabIndex = 2;
this.label3.Text = "静音时间:";
this.label3.Click += new System.EventHandler(this.label2_Click);
//
// comboBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"-5",
"-4",
"-3",
"-2",
"-1",
"0",
"1",
"2",
"3",
"4",
"5"});
this.comboBox1.Location = new System.Drawing.Point(104, 140);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(132, 25);
this.comboBox1.TabIndex = 7;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(28, 143);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(59, 17);
this.label4.TabIndex = 0;
this.label4.Text = "播报速度:";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(3, 45);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(59, 17);
this.label5.TabIndex = 8;
this.label5.Text = "状态持续:";
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(78, 42);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(71, 23);
this.textBox2.TabIndex = 9;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(155, 45);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(56, 17);
this.label6.TabIndex = 10;
this.label6.Text = "分钟广播";
//
// label7
//
this.label7.AutoSize = true;
this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.label7.Location = new System.Drawing.Point(246, 118);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(271, 17);
this.label7.TabIndex = 11;
this.label7.Text = "例子:设备{mid}状态{status}{min}分钟,请及时处理";
//
// button2
//
this.button2.BackgroundImage = global::Siger.Voice.Properties.Resources.图标;
this.button2.Location = new System.Drawing.Point(104, 3);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(132, 132);
this.button2.TabIndex = 12;
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(83, 15);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(20, 17);
this.label8.TabIndex = 2;
this.label8.Text = "至";
this.label8.Click += new System.EventHandler(this.label2_Click);
//
// comboBox2
//
this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Items.AddRange(new object[] {
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23"});
this.comboBox2.Location = new System.Drawing.Point(6, 12);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(71, 25);
this.comboBox2.TabIndex = 13;
//
// comboBox3
//
this.comboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox3.FormattingEnabled = true;
this.comboBox3.Items.AddRange(new object[] {
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23"});
this.comboBox3.Location = new System.Drawing.Point(109, 12);
this.comboBox3.Name = "comboBox3";
this.comboBox3.Size = new System.Drawing.Size(71, 25);
this.comboBox3.TabIndex = 13;
//
// checkBox8
//
this.checkBox8.AutoSize = true;
this.checkBox8.Location = new System.Drawing.Point(79, 15);
this.checkBox8.Name = "checkBox8";
this.checkBox8.Size = new System.Drawing.Size(51, 21);
this.checkBox8.TabIndex = 4;
this.checkBox8.Text = "关机";
this.checkBox8.UseVisualStyleBackColor = true;
this.checkBox8.CheckedChanged += new System.EventHandler(this.checkBox8_CheckedChanged);
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(3, 15);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(59, 17);
this.label9.TabIndex = 2;
this.label9.Text = "报警状态:";
this.label9.Click += new System.EventHandler(this.label2_Click);
//
// checkBox9
//
this.checkBox9.AutoSize = true;
this.checkBox9.Location = new System.Drawing.Point(140, 15);
this.checkBox9.Name = "checkBox9";
this.checkBox9.Size = new System.Drawing.Size(51, 21);
this.checkBox9.TabIndex = 4;
this.checkBox9.Text = "运行";
this.checkBox9.UseVisualStyleBackColor = true;
this.checkBox9.CheckedChanged += new System.EventHandler(this.checkBox9_CheckedChanged);
//
// checkBox10
//
this.checkBox10.AutoSize = true;
this.checkBox10.Location = new System.Drawing.Point(203, 15);
this.checkBox10.Name = "checkBox10";
this.checkBox10.Size = new System.Drawing.Size(51, 21);
this.checkBox10.TabIndex = 4;
this.checkBox10.Text = "调试";
this.checkBox10.UseVisualStyleBackColor = true;
this.checkBox10.CheckedChanged += new System.EventHandler(this.checkBox10_CheckedChanged);
//
// checkBox11
//
this.checkBox11.AutoSize = true;
this.checkBox11.Location = new System.Drawing.Point(264, 15);
this.checkBox11.Name = "checkBox11";
this.checkBox11.Size = new System.Drawing.Size(51, 21);
this.checkBox11.TabIndex = 4;
this.checkBox11.Text = "空闲";
this.checkBox11.UseVisualStyleBackColor = true;
this.checkBox11.CheckedChanged += new System.EventHandler(this.checkBox11_CheckedChanged);
//
// checkBox12
//
this.checkBox12.AutoSize = true;
this.checkBox12.Location = new System.Drawing.Point(325, 15);
this.checkBox12.Name = "checkBox12";
this.checkBox12.Size = new System.Drawing.Size(51, 21);
this.checkBox12.TabIndex = 4;
this.checkBox12.Text = "故障";
this.checkBox12.UseVisualStyleBackColor = true;
this.checkBox12.CheckedChanged += new System.EventHandler(this.checkBox12_CheckedChanged);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.comboBox5);
this.groupBox1.Controls.Add(this.comboBox2);
this.groupBox1.Controls.Add(this.comboBox4);
this.groupBox1.Controls.Add(this.label10);
this.groupBox1.Controls.Add(this.comboBox3);
this.groupBox1.Controls.Add(this.label8);
this.groupBox1.Location = new System.Drawing.Point(104, 294);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(382, 73);
this.groupBox1.TabIndex = 14;
this.groupBox1.TabStop = false;
//
// comboBox5
//
this.comboBox5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox5.FormattingEnabled = true;
this.comboBox5.Items.AddRange(new object[] {
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23"});
this.comboBox5.Location = new System.Drawing.Point(109, 45);
this.comboBox5.Name = "comboBox5";
this.comboBox5.Size = new System.Drawing.Size(71, 25);
this.comboBox5.TabIndex = 13;
//
// comboBox4
//
this.comboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox4.FormattingEnabled = true;
this.comboBox4.Items.AddRange(new object[] {
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23"});
this.comboBox4.Location = new System.Drawing.Point(6, 45);
this.comboBox4.Name = "comboBox4";
this.comboBox4.Size = new System.Drawing.Size(71, 25);
this.comboBox4.TabIndex = 13;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(83, 46);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(20, 17);
this.label10.TabIndex = 2;
this.label10.Text = "至";
this.label10.Click += new System.EventHandler(this.label2_Click);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.checkBox10);
this.groupBox2.Controls.Add(this.label9);
this.groupBox2.Controls.Add(this.checkBox8);
this.groupBox2.Controls.Add(this.checkBox9);
this.groupBox2.Controls.Add(this.label6);
this.groupBox2.Controls.Add(this.checkBox11);
this.groupBox2.Controls.Add(this.textBox2);
this.groupBox2.Controls.Add(this.checkBox12);
this.groupBox2.Controls.Add(this.label5);
this.groupBox2.Location = new System.Drawing.Point(104, 171);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(382, 76);
this.groupBox2.TabIndex = 15;
this.groupBox2.TabStop = false;
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(27, 186);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(59, 17);
this.label11.TabIndex = 2;
this.label11.Text = "设备状态:";
this.label11.Click += new System.EventHandler(this.label2_Click);
//
// comboBox6
//
this.comboBox6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox6.FormattingEnabled = true;
this.comboBox6.Items.AddRange(new object[] {
"1",
"2",
"3",
"4",
"5"});
this.comboBox6.Location = new System.Drawing.Point(278, 140);
this.comboBox6.Name = "comboBox6";
this.comboBox6.Size = new System.Drawing.Size(71, 25);
this.comboBox6.TabIndex = 13;
//
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(355, 143);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(23, 17);
this.label12.TabIndex = 2;
this.label12.Text = "次:";
this.label12.Click += new System.EventHandler(this.label2_Click);
//
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(246, 143);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(35, 17);
this.label13.TabIndex = 2;
this.label13.Text = "重复:";
this.label13.Click += new System.EventHandler(this.label2_Click);
//
// FrmRulesSetting
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(645, 369);
this.Controls.Add(this.comboBox6);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.button2);
this.Controls.Add(this.label7);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.button1);
this.Controls.Add(this.checkBox7);
this.Controls.Add(this.checkBox6);
this.Controls.Add(this.checkBox5);
this.Controls.Add(this.checkBox4);
this.Controls.Add(this.checkBox3);
this.Controls.Add(this.checkBox2);
this.Controls.Add(this.checkBox1);
this.Controls.Add(this.label13);
this.Controls.Add(this.label12);
this.Controls.Add(this.label11);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label4);
this.Controls.Add(this.label1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximumSize = new System.Drawing.Size(661, 408);
this.MinimumSize = new System.Drawing.Size(661, 408);
this.Name = "FrmRulesSetting";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "播报设置";
this.Load += new System.EventHandler(this.FrmRulesSetting_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Label label1;
private TextBox textBox1;
private Label label2;
private CheckBox checkBox1;
private CheckBox checkBox2;
private CheckBox checkBox3;
private CheckBox checkBox4;
private CheckBox checkBox5;
private CheckBox checkBox6;
private CheckBox checkBox7;
private Button button1;
private Label label3;
private ComboBox comboBox1;
private Label label4;
private Label label5;
private TextBox textBox2;
private Label label6;
private Label label7;
private Button button2;
private Label label8;
private ComboBox comboBox2;
private ComboBox comboBox3;
private CheckBox checkBox8;
private Label label9;
private CheckBox checkBox9;
private CheckBox checkBox10;
private CheckBox checkBox11;
private CheckBox checkBox12;
private GroupBox groupBox1;
private ComboBox comboBox5;
private ComboBox comboBox4;
private Label label10;
private GroupBox groupBox2;
private Label label11;
private ComboBox comboBox6;
private Label label12;
private Label label13;
}
}
\ No newline at end of file
using Siger.Voice.Helper;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Newtonsoft.Json;
namespace Siger.Voice
{
public partial class FrmRulesSetting : Form
{
private readonly TempData _data;
private readonly string _dataPath;
private TempData newData;
public FrmRulesSetting(TempData data,string path)
{
InitializeComponent();
this._data = data;
this._dataPath = path;
newData = new TempData
{
Template=data.Template,
Date=new WeekDate
{
Mon=data.Date.Mon,
Tues=data.Date.Tues,
Wed=data.Date.Wed,
Thur=data.Date.Thur,
Fri=data.Date.Fri,
Sat=data.Date.Sat,
Sun=data.Date.Sun,
},
MachineStatus=new MachineStatus
{
Down =data.MachineStatus.Down,
Running=data.MachineStatus.Running,
Debug=data.MachineStatus.Debug,
Free=data.MachineStatus.Free,
Fault=data.MachineStatus.Fault
},
Time=data.Time,
Speed=data.Speed,
STime=data.STime,
ETime=data.ETime,
Repeat=data.Repeat,
};
}
private static readonly string strText = "设备{mid}状态{status} {min}分钟,请及时处理";
private void checkBox7_CheckedChanged(object sender, EventArgs e)
{
if (checkBox6.Checked)
{
_data.Date.Sun = 1;
newData.Date.Sun = 1;
}
else
{
_data.Date.Sun = 0;
newData.Date.Sun = 0;
}
}
private void checkBox6_CheckedChanged(object sender, EventArgs e)
{
if (checkBox6.Checked)
{
_data.Date.Sat = 1;
newData.Date.Sat = 1;
}
else
{
_data.Date.Sat = 0;
newData.Date.Sat = 0;
}
}
private void checkBox5_CheckedChanged(object sender, EventArgs e)
{
if (checkBox5.Checked)
{
_data.Date.Fri = 1;
newData.Date.Fri = 1;
}
else
{
_data.Date.Fri = 0;
newData.Date.Fri = 0;
}
}
private void checkBox4_CheckedChanged(object sender, EventArgs e)
{
if (checkBox4.Checked)
{
_data.Date.Thur = 1;
newData.Date.Thur = 1;
}
else
{
_data.Date.Thur = 0;
newData.Date.Thur = 0;
}
}
private void checkBox3_CheckedChanged(object sender, EventArgs e)
{
if (checkBox2.Checked)
{
_data.Date.Wed = 1;
newData.Date.Wed = 1;
}
else
{
_data.Date.Wed = 0;
newData.Date.Wed = 0;
}
}
private void checkBox2_CheckedChanged(object sender, EventArgs e)
{
if (checkBox2.Checked)
{
_data.Date.Tues = 1;
newData.Date.Tues = 1;
}
else
{
_data.Date.Tues = 0;
newData.Date.Tues = 0;
}
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (checkBox1.Checked)
{
_data.Date.Mon = 1;
newData.Date.Mon = 1;
}
else
{
_data.Date.Mon = 0;
newData.Date.Mon= 0;
}
}
private void label2_Click(object sender, EventArgs e)
{
}
private void FrmRulesSetting_Load(object sender, EventArgs e)
{
this.textBox1.Text = _data.Template;
this.comboBox1.Text=_data.Speed==0?"0": _data.Speed.ToString();
this.textBox2.Text=_data.Time.ToString();
BindDate();
this.comboBox2.Text = _data.STime.ToString();
this.comboBox3.Text=_data.ETime.ToString();
this.comboBox4.Text=_data.STime2.ToString();
this.comboBox5.Text=_data.ETime2.ToString();
this.comboBox6.Text = _data.Repeat == 0 ? "0" : _data.Repeat.ToString();
}
void BindDate()
{
if (_data.Date.Mon == 1)
checkBox1.Checked = true;
else
checkBox1.Checked = false;
if (_data.Date.Tues == 1)
checkBox2.Checked = true;
else
checkBox2.Checked = false;
if (_data.Date.Wed == 1)
checkBox3.Checked = true;
else
checkBox3.Checked = false;
if (_data.Date.Thur == 1)
checkBox4.Checked = true;
else
checkBox4.Checked = false;
if (_data.Date.Fri == 1)
checkBox5.Checked = true;
else
checkBox5.Checked = false;
if (_data.Date.Sat == 1)
checkBox6.Checked = true;
else
checkBox6.Checked = false;
if (_data.Date.Sun == 1)
checkBox7.Checked = true;
else
checkBox7.Checked = false;
if (_data.MachineStatus.Down == 1)
checkBox8.Checked = true;
else
checkBox8.Checked = false;
if (_data.MachineStatus.Running == 1)
checkBox9.Checked = true;
else
checkBox9.Checked = false;
if (_data.MachineStatus.Debug == 1)
checkBox10.Checked = true;
else
checkBox10.Checked = false;
if (_data.MachineStatus.Free == 1)
checkBox11.Checked = true;
else
checkBox11.Checked = false;
if (_data.MachineStatus.Fault == 1)
checkBox12.Checked = true;
else
checkBox12.Checked = false;
}
private void button1_Click(object sender, EventArgs e)
{
if (!Validate())
return;
var strJson = JsonConvert.SerializeObject(newData);
FileHelper<TempData>.WriteJsonData(_dataPath, strJson);
var diaResult= MessageBox.Show("配置生效需要立即重启", "提示", MessageBoxButtons.YesNo);
if (diaResult == DialogResult.Yes)
{
Application.Restart();
}
else
{
this.Close();
}
}
private void button2_Click(object sender, EventArgs e)
{
int.TryParse(comboBox1.Text, out int speed);
var result= strText;
if (!string.IsNullOrEmpty(textBox1.Text))
{
result = textBox1.Text;
}
result = strText.Replace("{mid}", "100");
result = result.Replace("{status}", "空闲");
result = result.Replace("{min}", "5");
Voice.Readcontext(result, speed);
}
private bool Validate()
{
if (string.IsNullOrEmpty(textBox1.Text))
{
MessageBox.Show("文案模板为空,请按照格式维护完整","提示",MessageBoxButtons.OK);
textBox1.Focus();
return false;
}
newData.Template = textBox1.Text;
if(string.IsNullOrEmpty(comboBox1.Text))
{
MessageBox.Show("请选择播报速度", "提示", MessageBoxButtons.OK);
comboBox1.Focus();
return false;
}
newData.Speed = comboBox1.Text.ToInt();
if (string.IsNullOrEmpty(textBox2.Text))
{
MessageBox.Show("请选择状态持续时间", "提示", MessageBoxButtons.OK);
textBox2.Focus();
return false;
}
newData.Time=textBox2.Text.ToInt();
if (newData.Time < 2)
{
MessageBox.Show("状态持续时间至少大于1 分钟", "提示", MessageBoxButtons.OK);
textBox2.Focus();
return false;
}
if (string.IsNullOrEmpty(comboBox2.Text))
{
MessageBox.Show("请选择静音开始时间", "提示", MessageBoxButtons.OK);
comboBox2.Focus();
return false;
}
if (string.IsNullOrEmpty(comboBox3.Text))
{
MessageBox.Show("请选择静音结束时间", "提示", MessageBoxButtons.OK);
comboBox3.Focus();
return false;
}
if (string.IsNullOrEmpty(comboBox4.Text))
{
MessageBox.Show("请选择静音开始时间", "提示", MessageBoxButtons.OK);
comboBox4.Focus();
return false;
}
if (string.IsNullOrEmpty(comboBox5.Text))
{
MessageBox.Show("请选择静音结束时间", "提示", MessageBoxButtons.OK);
comboBox5.Focus();
return false;
}
if (!int.TryParse(comboBox2.Text,out int _shours))
{
MessageBox.Show("请选择静音开始时间格式错误", "提示", MessageBoxButtons.OK);
return false;
}
if (!int.TryParse(comboBox3.Text, out int _ehours))
{
MessageBox.Show("静音开始时间格式错误", "提示", MessageBoxButtons.OK);
comboBox2.Focus();
return false;
}
if (_shours>_ehours)
{
MessageBox.Show("静音开始时间不能大于结束时间", "提示", MessageBoxButtons.OK);
comboBox2.Focus();
return false;
}
if (!int.TryParse(comboBox4.Text, out int _shours2))
{
MessageBox.Show("请选择静音开始时间格式错误", "提示", MessageBoxButtons.OK);
return false;
}
if (!int.TryParse(comboBox5.Text, out int _ehours2))
{
MessageBox.Show("静音开始时间格式错误", "提示", MessageBoxButtons.OK);
comboBox5.Focus();
return false;
}
if (_shours2 > _ehours2)
{
MessageBox.Show("静音开始时间不能大于结束时间", "提示", MessageBoxButtons.OK);
comboBox2.Focus();
return false;
}
newData.Repeat=comboBox6.Text.ToInt();
newData.STime = _shours;
newData.ETime = _ehours;
newData.STime2 = _shours2;
newData.ETime2 = _ehours2;
return true;
}
/// <summary>
/// 关机
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void checkBox8_CheckedChanged(object sender, EventArgs e)
{
if (checkBox8.Checked)
{
_data.MachineStatus.Down= 1;
newData.MachineStatus.Down = 1;
}
else
{
_data.MachineStatus.Down = 0;
newData.MachineStatus.Down = 0;
}
}
/// <summary>
/// 运行
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void checkBox9_CheckedChanged(object sender, EventArgs e)
{
if (checkBox9.Checked)
{
_data.MachineStatus.Running = 1;
newData.MachineStatus.Running = 1;
}
else
{
_data.MachineStatus.Running = 0;
newData.MachineStatus.Running = 0;
}
}
/// <summary>
/// 调试
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void checkBox10_CheckedChanged(object sender, EventArgs e)
{
if (checkBox10.Checked)
{
_data.MachineStatus.Debug = 1;
newData.MachineStatus.Debug = 1;
}
else
{
_data.MachineStatus.Debug = 0;
newData.MachineStatus.Debug = 0;
}
}
/// <summary>
/// 空闲
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void checkBox11_CheckedChanged(object sender, EventArgs e)
{
if (checkBox11.Checked)
{
_data.MachineStatus.Free = 1;
newData.MachineStatus.Free = 1;
}
else
{
_data.MachineStatus.Free = 0;
newData.MachineStatus.Free = 0;
}
}
/// <summary>
/// 故障
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void checkBox12_CheckedChanged(object sender, EventArgs e)
{
if (checkBox12.Checked)
{
_data.MachineStatus.Fault = 1;
newData.MachineStatus.Fault = 1;
}
else
{
_data.MachineStatus.Fault = 0;
newData.MachineStatus.Fault = 0;
}
}
}
}
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAABILAAASCwAAAAAAAAAA
AAD8/Pz//f39//X19f/v7+//8fHx//z8/P/9/fz/8/Ty/+/w8v/49fz/+/r2/+Xtzf/O35//w9yE/7zW
dv+62G//udZv/73Xd/+91H//yNmX/+Xszv/7+vn/+Pb9//Dv8//09PP//v39//v7+//x8fH/7+/v//X1
9f/9/f3//Pz8////////////9PT0/+vr6//u7u7//v79///////39/r/5ere/8/go/+913f/rs9a/67P
VP+v0Fb/sNFY/7DRWP+y0lr/qcpQ/57AQv+dwUL/nsFJ/7DNaP/K2qP/6erh//j3+/////7//v7+/+7u
7v/r6+v/9PT0////////////+Pj4//j4+P/29vb/9PX1//L18v/5+fv/+fr4/9Xlqv+y02H/rM9S/6/P
WP+z0lz/s9Ne/7PSXf+y0l3/tNNe/6vLVP+hwUr/o8RL/6PDTP+hxEr/ncFD/5u/Pv+kxVT/0OGs//36
/P/4+fn/8/Xz//X19f/29vb/+Pj4//j4+P/t7e3/6+vr//j4+P///////v///+jr4P+91oH/rM5Q/7LS
W/+z017/s9Jd/7LSXP+y0lz/stJc/7PTXf+ry1T/ocJI/6LDSv+iw0r/osNK/6LDSv+jxEv/pMRN/6DC
SP+Yvj3/uM59/+vs4//+/v////////j4+P/r6+v/7e3t/+/v7//u7u//9vf0///////y9uP/t9Vs/6/Q
VP+z01//stJd/7LSXP+y0lz/stJc/7LSXP+z013/qspT/6HBSf+iw0r/osNK/6LDSv+iw0r/osNK/6LD
Sv+iw0r/o8NL/6TETf+cwED/q8dl//P26P//////9vf3/+7u7v/v7+///f39//3+/P/29vj/6e3e/7fU
bv+t0Ff/s9Ng/7LSXP+y0lz/stJc/7LSXP+y0lz/s9Nd/6rKVP+hwkn/osNK/6LDSv+iw0r/osNK/6LD
Sv+iw0r/osNK/6LDSv+iw0r/osNK/6PETv+bwEL/rspn/+zu5P/19vf//f39//39/f////7///////X1
8/+51Xn/rdBU/7PTX/+y0lz/stJc/7LSXP+y0lz/stJc/7PTXf+qylP/ocFJ/6LDSv+iw0r/osNK/6LD
Sv+iw0r/osNK/6LDSv+iw0r/osNK/6LDSv+iw0r/ocNK/6PETv+bvkD/tcx4//r2+f/////////+//T0
8//59/3/0eGm/63NU/+002D/stJc/7LSXP+y0lz/stJc/7LSXP+z013/qspT/6HCSP+iw0r/osNK/6PD
S/+jxEz/osNK/6LDSv+iw0r/osNK/6LDSv+iw0r/osNK/6LDSv+iw0r/osNK/6PFTP+bwED/0t+v//n4
/P/09PL/7u7w/+fq2f+x0Fz/s9Jc/7LSXP+y0lz/stJc/7LSXP+y0lz/s9Nd/6rKU/+hwUn/osNK/6LD
Sv+hw0z/nsFE/57BQv+jwkn/osNK/6LDSv+iw0r/osNK/6LDSv+hw0r/ocRK/6LESv+iwkv/osNL/6DC
R/+kxFT/6erh/+7t8f/08vr/y96a/63QUv+z017/stJc/7LSXP+y0lz/stJc/7PTXf+qylP/ocJJ/6LD
Sv+iw0r/o8NP/57AO/++04b/z9qt/6DBR/+ixEr/osNK/6LDSv+iw0r/o8NM/6PFTP+dwUf/nr9H/6HB
Sv+iwkv/pMRN/5vAP//K2aD/9vP9//b37/+21Gv/sNFY/7LSXf+y0lz/stJc/7LSXP+z013/qcpS/6HB
Sf+iw0r/ocNL/6DETP+pwz7/hL5n/8Xq8P/w6+P/n8FN/6LDSf+iw0r/osNL/6TDTP+fwET/lrs2/8HV
h//n7dH/ocFM/6LCSf+jxEz/nsFD/67MZf/8+/j/4OvB/63PWf+z013/stJc/7LSXP+z0l7/tNNf/6rK
Vv+iwkv/osRM/6HDTf+kw0b/pcBB/4XDgf9OzO3/uu3+/+zn1v+dwFD/osNJ/6PDS/+hwkf/nMA9/7zT
ff/I2pb/rclo///////T4a3/mr4+/6TETf+jw0v/ncBH/+TszP/F24//rdBW/7PSXv+y0lz/sdFf/6/S
V/+lyEn/ncA//53BQv+iwUP/p8E//5XAWf9txLL/V9P8/1DU+P+87fr/7+jW/6K/Rf+hxEn/nsJH/6vI
YP+mxVn/yNqU//////+kxFn/y92b//z7/P+lxFL/ocNH/6PETf+dwEH/xNeT/7nWdf+w0Vn/s9Jd/7LS
Xf+x0lj/t853/7bJe/+2yXv/tst5/5fFgf9txK3/V8/r/1nV//9d1/j/UdL3/7zu9//q6OL/jsJ8/6HD
TP+avTz/1uOy//P26P+evkr/9Pfq/9fjs/+kw1X//////7/Vhf+cvz//pMRO/5/BQ/+0znT/utds/7DR
Wv+y0l7/s9FW/6LTkP/v8fn/+vj8//b2/f//+/v/muL6/0nT//9d1/z/W9X3/13V+v9Q0/j/ve31/+fs
7P9Y1///cdC+/52/P/+z0HD//////6rHYv/O3qL/8fTn/5+/Sv/4+/H/y9yf/5u/PP+kxE//oMFH/6nH
Xf+002D/stFc/7LTX/+x0FL/kde7/+75///5+PX/9vj3///89v+f4/T/UdL3/1zV+P9a1fn/XNb5/1DS
+P++7fb/5+zq/13U8/9V2P//j8hz/6PBR//3+vn/sMpv/73Tif/0+u7/oMFG//H25v/Y5rH/m747/6PC
Tv+kxE3/sNFa/7PTYP+w0Vz/stNe/7LQUv+O17z/7vb///n39P/19/b///v1/53j9P9R0vf/XNb4/1rV
+f9c1fr/UNP4/77t9v/n7Ov/XdXz/1fX//+KxGz/v9J0//////+qyGH/1OWo/+/z4f+ewEb/+vzz/8vd
oP+avTr/pcRQ/7DQWf+z01//uNZr/6/RWv+y0l7/stFV/6PVk//y9/7//vv+//n6/////v7/m+T6/0rT
//9c1vv/W9X3/1zW+f9Q0/j/vu31/+fs6/9a1///bc/A/52+Pf/l7c7/6vLZ/6jLU//5+/D/0uGo/6bG
WP//////vdN//56/Q/+y0V//stJa/7XTa/+813b/sNBZ/7LSXf+y0lz/tdFX/8HZfv/G3Iz/xdqL/8nb
jP+l14//eNO8/17V8f9V1v//XdX3/1HS9v+87fn/7Onf/47Ed/+iw0v/n8BB/7fOdf+31Wv/2Oew////
//+oyVv/1+at//n58/+lxVD/sNBZ/7PTX/+v0Ff/wNmB/8bajv+v0FT/stJe/7LSXP+x0l3/r9BV/63P
U/+uz1T/rc9U/7PQVP+30FP/pNFu/3zSvf9a1f//UNL4/73u+P/t6dX/ob9G/6HCR/+mx0//rs5X/6zO
Uf/b6LP/0OCi/7nTdP//////zd2e/6rMUP+01F//s9Jf/67PVP/N3pz/4Oy+/63PWP+z0l7/stJc/7LS
XP+z0l7/s9Ne/7TSXv+y0l//sdJf/7DSX/+10lj/t9BU/5LRlP9R0/D/uO3+/+3o1f+cv07/pcZO/7LR
XP+z01//stJd/6/PV/+pzE//5+/M/+zx2f+uzFn/s9Jd/7LSXP+z0l3/rs5d/+nx0f/3+PD/t9Rv/7DR
WP+y0l3/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7HSXf+w0l//u9BS/5LPd//G7vP/7+jh/6LD
Uv+y0lv/s9Jd/7LSXP+y0lz/s9Ne/7LRWv+51Wz/ttRn/7DRWf+y0lz/s9Jd/6/QV/++2Hf//v37//b1
+v/M35r/rM9T/7LSX/+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/sdJd/7LSXP+x01//rtBQ/83d
lP/U37L/rc9Y/7PTXf+y0lz/stJc/7LSXP+y0lz/s9Jd/7HRWf+w0Vr/s9Nc/7LSXP+z017/rc9S/9Ph
qv/39Pv/7u7w/+fp1/+v0F3/sNJc/7LSXf+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7HS
W/+w0l//rdFW/6zQVv+x0l3/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJd/7PSXf+y0lz/stJd/7HR
Wv+00mb/5+rj/+vt7v/z9PH/+fb8/9Hhpv+tz1L/tNNf/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+y0lz/stJc/7HSXP+y0l3/stNd/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+00l//rdFT/9nntv/39vz/8/Ty/////v//////9fT1/7vVef+u0FT/s9Jf/7LSXP+y0lz/stJc/7LS
XP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+y0lz/tNNf/6zPUv++2IX/9vb5//////////7//v3+//7//P/29fj/6O3c/7bVbf+v0VT/tNNf/7LS
XP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+y0lz/stJc/7XTX/+vz1T/udd1/+rt5f/29vb//v7+//39/f/w8PD/7+/u//f49f//////8Pbj/7XU
bP+u0FT/tNNf/7LSXP+y0lv/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+y0lz/stJc/7LSXf+0017/rc9U/7nVdP/09+r///////f39v/u7u//8PDw/+3t7f/r6+v/9/f4////
/////v//5+3c/77Xgf+szlH/sdFb/7PSX/+z0l3/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+y0lz/stJc/7PSXf+z0l7/sdFa/6vPUf/A2In/6+zn///+////////+Pj4/+vr6//t7e3/9vb2//X1
9f/29vb/+Pj3//b39P/39vn/9/b3/9Xkqv+00WT/rc9R/6/RVv+y01z/stNd/7LSXf+y0l3/stJc/7LS
Xf+y0l3/stJd/7PSXv+y0lz/rtBW/63PUf+202f/2Oa0//f3+f/29fb/9vb1//j4+P/39/f/9fX1//X1
9f////////////T09P/r6+v/7u/u//7+/f//////+ff6/+ns3f/N3qT/vNh1/67QWv+vz1f/r9FW/67R
Wf+u0Fr/rtBZ/67RWf+v0Fb/rdBU/67PXf+913j/1OKs/+vs4v/49/v///////7+/f/u7+7/6+vr//T0
9P//////////////////////9PT0/+3t7f/w8PD//f3+///////z9PL/6+7v//T1+f/8/Pn/5/DO/83e
nv+91n7/udVy/7zZcP+92nL/utV0/8HZhP/P4J//6fDS//38+f/19Pr/7e3u//T08v///////f39/+/v
7//t7e3/9fX1///////+/v7/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
</value>
</data>
</root>
\ No newline at end of file
namespace Siger.Voice
{
partial class FrmTesting
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmTesting));
this.txtlinsence = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.button1 = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.txtyqm = new System.Windows.Forms.TextBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// txtlinsence
//
this.txtlinsence.Font = new System.Drawing.Font("Microsoft YaHei UI", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txtlinsence.Location = new System.Drawing.Point(89, 199);
this.txtlinsence.Name = "txtlinsence";
this.txtlinsence.Size = new System.Drawing.Size(520, 30);
this.txtlinsence.TabIndex = 1;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.label1.Location = new System.Drawing.Point(11, 207);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(50, 17);
this.label1.TabIndex = 2;
this.label1.Text = "license:";
//
// pictureBox1
//
this.pictureBox1.Image = global::Siger.Voice.Properties.Resources._61ba54ceb13f12943309cb1265d959f0;
this.pictureBox1.Location = new System.Drawing.Point(388, -1);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(221, 194);
this.pictureBox1.TabIndex = 3;
this.pictureBox1.TabStop = false;
//
// button1
//
this.button1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.button1.Location = new System.Drawing.Point(265, 235);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(91, 38);
this.button1.TabIndex = 4;
this.button1.Text = "注册";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(11, 124);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(47, 17);
this.label2.TabIndex = 5;
this.label2.Text = "邀请码:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.label3.Location = new System.Drawing.Point(12, 37);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(35, 17);
this.label3.TabIndex = 2;
this.label3.Text = "状态:";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(95, 37);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(43, 17);
this.label4.TabIndex = 6;
this.label4.Text = "label4";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.label5.Location = new System.Drawing.Point(12, 75);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(47, 17);
this.label5.TabIndex = 2;
this.label5.Text = "有效期:";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(95, 75);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(43, 17);
this.label6.TabIndex = 6;
this.label6.Text = "label4";
//
// txtyqm
//
this.txtyqm.Location = new System.Drawing.Point(89, 129);
this.txtyqm.Multiline = true;
this.txtyqm.Name = "txtyqm";
this.txtyqm.Size = new System.Drawing.Size(293, 64);
this.txtyqm.TabIndex = 7;
//
// FrmTesting
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(608, 279);
this.Controls.Add(this.txtyqm);
this.Controls.Add(this.label6);
this.Controls.Add(this.label4);
this.Controls.Add(this.label2);
this.Controls.Add(this.button1);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.label5);
this.Controls.Add(this.label3);
this.Controls.Add(this.label1);
this.Controls.Add(this.txtlinsence);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximumSize = new System.Drawing.Size(624, 318);
this.MinimumSize = new System.Drawing.Size(624, 318);
this.Name = "FrmTesting";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "注册";
this.Load += new System.EventHandler(this.FrmTesting_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private TextBox textBox1;
private Label label1;
private PictureBox pictureBox1;
private Button button1;
private Label label2;
private Label label3;
private Label label4;
private Label label5;
private Label label6;
private TextBox textBox2;
private TextBox txtlinsence;
private TextBox txtyqm;
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DotNetSpeech;
using Siger.Client.Comm;
using Siger.Voice.Helper;
namespace Siger.Voice
{
public partial class FrmTesting : Form
{
private readonly BaseConfig config;
private readonly bool sysvalidate;
public FrmTesting(BaseConfig config,bool sysvalidate)
{
InitializeComponent();
this.config = config;
this.sysvalidate = sysvalidate;
}
private void button1_Click(object sender, EventArgs e)
{
if (sysvalidate)
{
MessageBox.Show("已经授权,无需注册", "提示", MessageBoxButtons.OK);
return;
}
if (string.IsNullOrEmpty(txtyqm.Text))
{
MessageBox.Show("请输入要测试为文字", "提示", MessageBoxButtons.OK);
return;
}
var sign = MD5Helper.Get32MD5(txtyqm.Text);
if (sign != txtlinsence.Text)
{
MessageBox.Show("注册失败,请联系管理员", "提示", MessageBoxButtons.OK);
return;
}
var path = Environment.CurrentDirectory + "\\Setting\\Linsence.json";
File.WriteAllText(path, sign);
var diagResult= MessageBox.Show("注册成功,立即重启程序", "提示", MessageBoxButtons.OK);
if (diagResult == DialogResult.OK)
{
Application.Restart();
}
}
private void FrmTesting_Load(object sender, EventArgs e)
{
if (sysvalidate)
{
label4.Text = "已经授权";
label4.BackColor = Color.LightGreen;
label6.Text = "永久";
}
else
{
label4.Text = "未授权";
label4.BackColor = Color.IndianRed;
label6.Text = "";
var strLabel = GetMachineInfo();
var strKey = Constant.GetLinsenceKeyStr(config.ProjectId, strLabel);
this.txtyqm.Text = strKey;
}
}
public static string GetMachineInfo()
{
var macAddress = MachineHelper.GetMacAddress();
var hdisk = MachineHelper.GetDiskID();
return $"mac:{macAddress}hdisk:{hdisk}";
}
}
}
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAABILAAASCwAAAAAAAAAA
AAD8/Pz//f39//X19f/v7+//8fHx//z8/P/9/fz/8/Ty/+/w8v/49fz/+/r2/+Xtzf/O35//w9yE/7zW
dv+62G//udZv/73Xd/+91H//yNmX/+Xszv/7+vn/+Pb9//Dv8//09PP//v39//v7+//x8fH/7+/v//X1
9f/9/f3//Pz8////////////9PT0/+vr6//u7u7//v79///////39/r/5ere/8/go/+913f/rs9a/67P
VP+v0Fb/sNFY/7DRWP+y0lr/qcpQ/57AQv+dwUL/nsFJ/7DNaP/K2qP/6erh//j3+/////7//v7+/+7u
7v/r6+v/9PT0////////////+Pj4//j4+P/29vb/9PX1//L18v/5+fv/+fr4/9Xlqv+y02H/rM9S/6/P
WP+z0lz/s9Ne/7PSXf+y0l3/tNNe/6vLVP+hwUr/o8RL/6PDTP+hxEr/ncFD/5u/Pv+kxVT/0OGs//36
/P/4+fn/8/Xz//X19f/29vb/+Pj4//j4+P/t7e3/6+vr//j4+P///////v///+jr4P+91oH/rM5Q/7LS
W/+z017/s9Jd/7LSXP+y0lz/stJc/7PTXf+ry1T/ocJI/6LDSv+iw0r/osNK/6LDSv+jxEv/pMRN/6DC
SP+Yvj3/uM59/+vs4//+/v////////j4+P/r6+v/7e3t/+/v7//u7u//9vf0///////y9uP/t9Vs/6/Q
VP+z01//stJd/7LSXP+y0lz/stJc/7LSXP+z013/qspT/6HBSf+iw0r/osNK/6LDSv+iw0r/osNK/6LD
Sv+iw0r/o8NL/6TETf+cwED/q8dl//P26P//////9vf3/+7u7v/v7+///f39//3+/P/29vj/6e3e/7fU
bv+t0Ff/s9Ng/7LSXP+y0lz/stJc/7LSXP+y0lz/s9Nd/6rKVP+hwkn/osNK/6LDSv+iw0r/osNK/6LD
Sv+iw0r/osNK/6LDSv+iw0r/osNK/6PETv+bwEL/rspn/+zu5P/19vf//f39//39/f////7///////X1
8/+51Xn/rdBU/7PTX/+y0lz/stJc/7LSXP+y0lz/stJc/7PTXf+qylP/ocFJ/6LDSv+iw0r/osNK/6LD
Sv+iw0r/osNK/6LDSv+iw0r/osNK/6LDSv+iw0r/ocNK/6PETv+bvkD/tcx4//r2+f/////////+//T0
8//59/3/0eGm/63NU/+002D/stJc/7LSXP+y0lz/stJc/7LSXP+z013/qspT/6HCSP+iw0r/osNK/6PD
S/+jxEz/osNK/6LDSv+iw0r/osNK/6LDSv+iw0r/osNK/6LDSv+iw0r/osNK/6PFTP+bwED/0t+v//n4
/P/09PL/7u7w/+fq2f+x0Fz/s9Jc/7LSXP+y0lz/stJc/7LSXP+y0lz/s9Nd/6rKU/+hwUn/osNK/6LD
Sv+hw0z/nsFE/57BQv+jwkn/osNK/6LDSv+iw0r/osNK/6LDSv+hw0r/ocRK/6LESv+iwkv/osNL/6DC
R/+kxFT/6erh/+7t8f/08vr/y96a/63QUv+z017/stJc/7LSXP+y0lz/stJc/7PTXf+qylP/ocJJ/6LD
Sv+iw0r/o8NP/57AO/++04b/z9qt/6DBR/+ixEr/osNK/6LDSv+iw0r/o8NM/6PFTP+dwUf/nr9H/6HB
Sv+iwkv/pMRN/5vAP//K2aD/9vP9//b37/+21Gv/sNFY/7LSXf+y0lz/stJc/7LSXP+z013/qcpS/6HB
Sf+iw0r/ocNL/6DETP+pwz7/hL5n/8Xq8P/w6+P/n8FN/6LDSf+iw0r/osNL/6TDTP+fwET/lrs2/8HV
h//n7dH/ocFM/6LCSf+jxEz/nsFD/67MZf/8+/j/4OvB/63PWf+z013/stJc/7LSXP+z0l7/tNNf/6rK
Vv+iwkv/osRM/6HDTf+kw0b/pcBB/4XDgf9OzO3/uu3+/+zn1v+dwFD/osNJ/6PDS/+hwkf/nMA9/7zT
ff/I2pb/rclo///////T4a3/mr4+/6TETf+jw0v/ncBH/+TszP/F24//rdBW/7PSXv+y0lz/sdFf/6/S
V/+lyEn/ncA//53BQv+iwUP/p8E//5XAWf9txLL/V9P8/1DU+P+87fr/7+jW/6K/Rf+hxEn/nsJH/6vI
YP+mxVn/yNqU//////+kxFn/y92b//z7/P+lxFL/ocNH/6PETf+dwEH/xNeT/7nWdf+w0Vn/s9Jd/7LS
Xf+x0lj/t853/7bJe/+2yXv/tst5/5fFgf9txK3/V8/r/1nV//9d1/j/UdL3/7zu9//q6OL/jsJ8/6HD
TP+avTz/1uOy//P26P+evkr/9Pfq/9fjs/+kw1X//////7/Vhf+cvz//pMRO/5/BQ/+0znT/utds/7DR
Wv+y0l7/s9FW/6LTkP/v8fn/+vj8//b2/f//+/v/muL6/0nT//9d1/z/W9X3/13V+v9Q0/j/ve31/+fs
7P9Y1///cdC+/52/P/+z0HD//////6rHYv/O3qL/8fTn/5+/Sv/4+/H/y9yf/5u/PP+kxE//oMFH/6nH
Xf+002D/stFc/7LTX/+x0FL/kde7/+75///5+PX/9vj3///89v+f4/T/UdL3/1zV+P9a1fn/XNb5/1DS
+P++7fb/5+zq/13U8/9V2P//j8hz/6PBR//3+vn/sMpv/73Tif/0+u7/oMFG//H25v/Y5rH/m747/6PC
Tv+kxE3/sNFa/7PTYP+w0Vz/stNe/7LQUv+O17z/7vb///n39P/19/b///v1/53j9P9R0vf/XNb4/1rV
+f9c1fr/UNP4/77t9v/n7Ov/XdXz/1fX//+KxGz/v9J0//////+qyGH/1OWo/+/z4f+ewEb/+vzz/8vd
oP+avTr/pcRQ/7DQWf+z01//uNZr/6/RWv+y0l7/stFV/6PVk//y9/7//vv+//n6/////v7/m+T6/0rT
//9c1vv/W9X3/1zW+f9Q0/j/vu31/+fs6/9a1///bc/A/52+Pf/l7c7/6vLZ/6jLU//5+/D/0uGo/6bG
WP//////vdN//56/Q/+y0V//stJa/7XTa/+813b/sNBZ/7LSXf+y0lz/tdFX/8HZfv/G3Iz/xdqL/8nb
jP+l14//eNO8/17V8f9V1v//XdX3/1HS9v+87fn/7Onf/47Ed/+iw0v/n8BB/7fOdf+31Wv/2Oew////
//+oyVv/1+at//n58/+lxVD/sNBZ/7PTX/+v0Ff/wNmB/8bajv+v0FT/stJe/7LSXP+x0l3/r9BV/63P
U/+uz1T/rc9U/7PQVP+30FP/pNFu/3zSvf9a1f//UNL4/73u+P/t6dX/ob9G/6HCR/+mx0//rs5X/6zO
Uf/b6LP/0OCi/7nTdP//////zd2e/6rMUP+01F//s9Jf/67PVP/N3pz/4Oy+/63PWP+z0l7/stJc/7LS
XP+z0l7/s9Ne/7TSXv+y0l//sdJf/7DSX/+10lj/t9BU/5LRlP9R0/D/uO3+/+3o1f+cv07/pcZO/7LR
XP+z01//stJd/6/PV/+pzE//5+/M/+zx2f+uzFn/s9Jd/7LSXP+z0l3/rs5d/+nx0f/3+PD/t9Rv/7DR
WP+y0l3/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7HSXf+w0l//u9BS/5LPd//G7vP/7+jh/6LD
Uv+y0lv/s9Jd/7LSXP+y0lz/s9Ne/7LRWv+51Wz/ttRn/7DRWf+y0lz/s9Jd/6/QV/++2Hf//v37//b1
+v/M35r/rM9T/7LSX/+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/sdJd/7LSXP+x01//rtBQ/83d
lP/U37L/rc9Y/7PTXf+y0lz/stJc/7LSXP+y0lz/s9Jd/7HRWf+w0Vr/s9Nc/7LSXP+z017/rc9S/9Ph
qv/39Pv/7u7w/+fp1/+v0F3/sNJc/7LSXf+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7HS
W/+w0l//rdFW/6zQVv+x0l3/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJd/7PSXf+y0lz/stJd/7HR
Wv+00mb/5+rj/+vt7v/z9PH/+fb8/9Hhpv+tz1L/tNNf/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+y0lz/stJc/7HSXP+y0l3/stNd/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+00l//rdFT/9nntv/39vz/8/Ty/////v//////9fT1/7vVef+u0FT/s9Jf/7LSXP+y0lz/stJc/7LS
XP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+y0lz/tNNf/6zPUv++2IX/9vb5//////////7//v3+//7//P/29fj/6O3c/7bVbf+v0VT/tNNf/7LS
XP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+y0lz/stJc/7XTX/+vz1T/udd1/+rt5f/29vb//v7+//39/f/w8PD/7+/u//f49f//////8Pbj/7XU
bP+u0FT/tNNf/7LSXP+y0lv/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+y0lz/stJc/7LSXf+0017/rc9U/7nVdP/09+r///////f39v/u7u//8PDw/+3t7f/r6+v/9/f4////
/////v//5+3c/77Xgf+szlH/sdFb/7PSX/+z0l3/stJc/7LSXP+y0lz/stJc/7LSXP+y0lz/stJc/7LS
XP+y0lz/stJc/7PSXf+z0l7/sdFa/6vPUf/A2In/6+zn///+////////+Pj4/+vr6//t7e3/9vb2//X1
9f/29vb/+Pj3//b39P/39vn/9/b3/9Xkqv+00WT/rc9R/6/RVv+y01z/stNd/7LSXf+y0l3/stJc/7LS
Xf+y0l3/stJd/7PSXv+y0lz/rtBW/63PUf+202f/2Oa0//f3+f/29fb/9vb1//j4+P/39/f/9fX1//X1
9f////////////T09P/r6+v/7u/u//7+/f//////+ff6/+ns3f/N3qT/vNh1/67QWv+vz1f/r9FW/67R
Wf+u0Fr/rtBZ/67RWf+v0Fb/rdBU/67PXf+913j/1OKs/+vs4v/49/v///////7+/f/u7+7/6+vr//T0
9P//////////////////////9PT0/+3t7f/w8PD//f3+///////z9PL/6+7v//T1+f/8/Pn/5/DO/83e
nv+91n7/udVy/7zZcP+92nL/utV0/8HZhP/P4J//6fDS//38+f/19Pr/7e3u//T08v///////f39/+/v
7//t7e3/9fX1///////+/v7/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
</value>
</data>
</root>
\ No newline at end of file
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CSRedis;
using Newtonsoft.Json;
namespace Siger.Voice.Helper
{
public class CSRedisHelper: CSRedisBase
{
private readonly bool _dispose;
public CSRedisHelper(string connStr,bool dispose=true):base(connStr)
{
_dispose = dispose;
}
public List<CNCEquipmentState> GetCNCEquipmentStates()
{
var result = new List<CNCEquipmentState>();
try
{
var data = Client.HGetAll(HashMachineInfo);
if (data != null && data.Count > 0)
{
foreach (var v in data)
{
if (!string.IsNullOrEmpty(v.Value))
{
result.Add(JsonConvert.DeserializeObject<CNCEquipmentState>(v.Value));
}
}
}
}
catch
{
throw;
}
finally
{
if (_dispose)
{
Dispose();
}
}
return result;
}
}
public abstract class CSRedisBase:IDisposable
{
protected const string HashMachineInfo = "CNC_EquipmentState";
private readonly string _conn;
protected CSRedisClient Client;
protected CSRedisBase(string conn)
{
this._conn = conn;
ConnectSingleRedis();
}
public void Dispose()
{
Client?.Dispose();
}
private void ConnectSingleRedis()
{
if (string.IsNullOrEmpty(_conn))
{
throw new Exception("Redis connection string not found.");
}
try
{
Client = new CSRedisClient(_conn);
}
catch (Exception e)
{
throw new Exception("connect redis failed:" + e.Message);
}
}
}
}
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Siger.Voice.Helper
{
public class ConfigureHelper
{
public static T GetAppSetting<T>(string name)
{
var result = ConfigurationManager.AppSettings[name];
if (string.IsNullOrWhiteSpace(result))
{
throw new Exception(name + " 配置值错误!");
}
if (typeof(int) == typeof(T))
{
if (int.TryParse(result, out var res) && res > 0)
{
return (T)(object)res;
}
}
else if (typeof(string) == typeof(T))
{
return (T)(object)result;
}
else if (typeof(string[]) == typeof(T))
{
return (T)(object)result.Split(',');
}
throw new Exception(name + " 配置值错误!");
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace Siger.Voice.Helper
{
public class EnumHelper
{
/// <summary>
/// 根据数字找到枚举说明
/// </summary>
/// <param name="value">枚举值</param>
/// <param name="em">枚举类型(最终返回的由数字决定)</param>
/// <returns></returns>
public static string ValueToDescription(int value, Enum em)
{
string name = Enum.GetName(em.GetType(), value);
var description = em.GetType().GetField(name.ToString()).GetCustomAttributes(typeof(DescriptionAttribute), false).FirstOrDefault() as DescriptionAttribute;
return description.Description;
}
/// <summary>
/// 返回枚举项的描述信息。
/// </summary>
/// <param name="e">要获取描述信息的枚举项。</param>
/// <returns>枚举项的描述信息,如果没有描述,则返回自身String。</returns>
public static string GetEnumDesc(Enum e)
{
if (e == null)
{
return string.Empty;
}
Type enumType = e.GetType();
DescriptionAttribute attr = null;
// 获取枚举字段。
FieldInfo fieldInfo = enumType.GetField(e.ToString());
if (fieldInfo != null)
{
// 获取描述的属性。
attr = Attribute.GetCustomAttribute(fieldInfo, typeof(DescriptionAttribute), false) as DescriptionAttribute;
}
// 返回结果
return !string.IsNullOrEmpty(attr?.Description) ? attr.Description : e.ToString();
}
}
}
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Siger.Voice.Helper
{
public class FileHelper<T>
{
public static T ReadJsonData(string _jsonPath)
{
if (File.Exists(_jsonPath))
{
var strjsData = File.ReadAllText(_jsonPath,Encoding.UTF8);
if (string.IsNullOrEmpty(strjsData))
throw new Exception("数据为空");
#pragma warning disable CS8603 // 可能返回 null 引用。
return JsonConvert.DeserializeObject<T>(strjsData, new JsonSerializerSettings { StringEscapeHandling= StringEscapeHandling.EscapeNonAscii});
#pragma warning restore CS8603 // 可能返回 null 引用。
}
else
{
throw new Exception("路径为非法");
}
}
public static void WriteJsonData(string _jsonPath, string context)
{
if (File.Exists(_jsonPath))
{
File.WriteAllText(_jsonPath, context);
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
namespace Siger.Voice.Helper
{
public class HttpClientHelper
{
private static readonly HttpClient HttpClient;
static HttpClientHelper()
{
var handler = new HttpClientHandler
{
AutomaticDecompression = DecompressionMethods.None,
};
HttpClient = new HttpClient(handler) { Timeout = TimeSpan.FromSeconds(60) };
}
public static string HttpPost(string url, string postData, string contentType = "application/json", Dictionary<string, string> headers = null)
{
if (headers != null)
{
foreach (var header in headers)
{
if (!HttpClient.DefaultRequestHeaders.TryGetValues(header.Key, out IEnumerable<string> values))
{
HttpClient.DefaultRequestHeaders.Add(header.Key, header.Value);
}
}
}
using (HttpContent httpContent = new StringContent(postData, Encoding.UTF8))
{
httpContent.Headers.ContentType = new MediaTypeHeaderValue(contentType);
try
{
var postResult = HttpClient.PostAsync(url, httpContent);
postResult.Wait();
var response = postResult.Result;
//response.EnsureSuccessStatusCode();
var resultContent = response.Content.ReadAsStringAsync();
resultContent.Wait();
return resultContent.Result;
}
catch (Exception e)
{
throw new Exception($"HttpPost {url} error: " + e.Message);
}
}
}
public static string HttpGet(string url, string contentType = "application/json", Dictionary<string, string> headers = null)
{
HttpClient.DefaultRequestHeaders.Clear();
HttpClient.DefaultRequestHeaders.Add("ContentType", contentType);
if (headers != null)
{
foreach (var header in headers)
{
HttpClient.DefaultRequestHeaders.Add(header.Key, header.Value);
}
}
try
{
var response = HttpClient.GetAsync(url);
response.Wait();
var result = response.Result;
//result.EnsureSuccessStatusCode();
var resultContent = result.Content.ReadAsStringAsync();
resultContent.Wait();
return resultContent.Result;
}
catch (Exception e)
{
throw new Exception($"HttpGet {url} error: " + e.Message);
}
}
public static string HttpPut(string url, string putData, string contentType = "application/json", Dictionary<string, string> headers = null)
{
if (headers != null)
{
foreach (var header in headers)
{
if (!HttpClient.DefaultRequestHeaders.TryGetValues(header.Key, out IEnumerable<string> values))
{
HttpClient.DefaultRequestHeaders.Add(header.Key, header.Value);
}
}
}
using (HttpContent httpContent = new StringContent(putData, Encoding.UTF8))
{
httpContent.Headers.ContentType = new MediaTypeHeaderValue(contentType);
try
{
var putResult = HttpClient.PutAsync(url, httpContent);
putResult.Wait();
var response = putResult.Result;
//response.EnsureSuccessStatusCode();
var resultContent = response.Content.ReadAsStringAsync();
resultContent.Wait();
return resultContent.Result;
}
catch (Exception e)
{
throw new Exception($"HttpPut {url} error: " + e.Message);
}
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Siger.Voice.Helper
{
public static class ObjectExtensions
{
public static int ToInt(this string value)
{
if (string.IsNullOrWhiteSpace(value))
{
return 0;
}
var success = int.TryParse(value, out var result);
return success ? result : 0;
}
public static string ToStr(this object value)
{
if (null == value)
{
return string.Empty;
}
if (string.IsNullOrWhiteSpace(value.ToString()))
{
return string.Empty;
}
return value.ToString();
}
public static double ToDouble(this string value)
{
if (string.IsNullOrWhiteSpace(value))
{
return 0;
}
var success = double.TryParse(value, out var result);
return success ? result : 0;
}
}
}
using Siger.Voice.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Siger.Voice
{
public class InitConfig
{
public static TempData GetTempDataConfigEntity(string path)
{
var entity = FileHelper<TempData>.ReadJsonData(path);
return entity;
}
public static BaseConfig GetBaseConfigEntity()
{
var entity = new BaseConfig
{
CompanyDesc = ConfigureHelper.GetAppSetting<string>("CompanyDesc"),
Url = ConfigureHelper.GetAppSetting<string>("Url"),
ProjectId = ConfigureHelper.GetAppSetting<int>("ProjectId"),
RedisConn = ConfigureHelper.GetAppSetting<string>("RedisConn"),
Module = ConfigureHelper.GetAppSetting<int>("Module")
};
return entity;
}
public static string GetLinsence(string path)
{
var entity = FileHelper<string>.ReadJsonData(path);
return entity;
}
public static MachineMapping GetMapping(string path)
{
var entity = FileHelper<MachineMapping>.ReadJsonData(path);
return entity;
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Siger.Client.Comm;
namespace Siger.Voice
{
public class LinsenceHelper
{
public LinsenceHelper()
{
}
public static bool SystemValidate(int projectId)
{
var path = Environment.CurrentDirectory + "\\Setting\\Linsence.json";
var localLinsence = File.ReadAllText(path);
var strLabel = GetMachineInfo();
var strKey = Constant.GetLinsenceKeyStr(projectId, strLabel);
var sign = MD5Helper.Get32MD5(strKey);
if (sign!= localLinsence)
return false;
return true;
}
public static string GetMachineInfo()
{
var macAddress = MachineHelper.GetMacAddress();
var hdisk = MachineHelper.GetDiskID();
return $"mac:{macAddress}hdisk:{hdisk}";
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Siger.Voice
{
public class MessageResponseObj
{
public int ret { get; set; }
public List<MsgObj> data { get; set; }
}
public class MsgObj
{
/// <summary>
/// 广播内容
/// </summary>
public string content { get; set; }
}
}
namespace Siger.Voice
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
var path = Environment.CurrentDirectory + "\\Setting\\TempData.json";
if (!File.Exists(path))
{
MessageBox.Show($"{path} Missings","ʾ",MessageBoxButtons.OK,MessageBoxIcon.Error);
return;
}
var mapppath = Environment.CurrentDirectory + "\\Setting\\MappingData.json";
if (!File.Exists(mapppath))
{
MessageBox.Show($"{mapppath} Missings", "ʾ", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
using (System.Threading.Mutex m = new System.Threading.Mutex(true, Application.ProductName, out bool createNew))
{
if (createNew)
{
var baseCfg = Get();
var tempCfg = GetTemp(path);
var mapping = GetMapping(mapppath);
log4net.Config.XmlConfigurator.Configure();
ApplicationConfiguration.Initialize();
Application.Run(new FrmMain(baseCfg,tempCfg,path,mapping));
}
else
{
MessageBox.Show("Ѿ!");
}
}
}
static BaseConfig Get()
{
return InitConfig.GetBaseConfigEntity();
}
static TempData GetTemp(string path)
{
return InitConfig.GetTempDataConfigEntity(path);
}
static MachineMapping GetMapping(string path)
{
return InitConfig.GetMapping(path);
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<PublishDir>bin\Release\net6.0-windows\publish\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<History>True|2023-11-03T03:18:01.4366914Z;</History>
</PropertyGroup>
</Project>
\ No newline at end of file
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Siger.Voice.Properties {
using System;
/// <summary>
/// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// 返回此类使用的缓存的 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Siger.Voice.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 重写当前线程的 CurrentUICulture 属性,对
/// 使用此强类型资源类的所有资源查找执行重写。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap _61ba54ceb13f12943309cb1265d959f0 {
get {
object obj = ResourceManager.GetObject("61ba54ceb13f12943309cb1265d959f0", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap gbo {
get {
object obj = ResourceManager.GetObject("gbo", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap 图标 {
get {
object obj = ResourceManager.GetObject("图标", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap 图标2 {
get {
object obj = ResourceManager.GetObject("图标2", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="图标2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\图标2.jpeg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="图标" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\图标.jpeg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="gbo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\gbo.jpeg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="61ba54ceb13f12943309cb1265d959f0" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\61ba54ceb13f12943309cb1265d959f0.jpeg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
\ No newline at end of file
{
"Url": "",
"Project": 1,
"CompanyDesc": ""
}
{
"Machine":[
{
"Mid":100,
"Name":"豸1"
},
{
"Mid":101,
"Name":"豸2"
}
}
\ No newline at end of file
{
"Template": "ι˾",
"Speed": 5,
"Date": {
"Mon": 1,
"Tues": 0,
"Wed": 0,
"Thur": 0,
"Fri": 6,
"Sat": 0,
"Sun": 0
},
"Time": 1,
"STime": 11,
"ETime": 22
}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<PackageIcon>tbiao.jpeg</PackageIcon>
<ApplicationIcon>bitbug_favicon.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Content Include="bitbug_favicon.ico" />
</ItemGroup>
<ItemGroup>
<None Include="C:\Users\jws\Downloads\tbiao.jpeg">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="CSRedisCore" Version="3.8.3" />
<PackageReference Include="log4net" Version="2.0.14" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="System.Management" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Siger.Client.Comm\Siger.Client.Comm.csproj" />
</ItemGroup>
<ItemGroup>
<Reference Include="DotNetSpeech">
<HintPath>..\513\dll\DotNetSpeech.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Folder Include="Dll\" />
</ItemGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_LastSelectedProfileId>D:\Code\20220327\Voice\Siger.Voice\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId>
</PropertyGroup>
<ItemGroup>
<Compile Update="FrmMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="FrmRulesSetting.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="FrmTesting.cs">
<SubType>Form</SubType>
</Compile>
</ItemGroup>
</Project>
\ No newline at end of file

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.1.32319.34
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Siger.Voice", "Siger.Voice.csproj", "{EFE6913D-4594-4813-97A7-250A9C688368}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Siger.Client.License", "..\Siger.Client.License\Siger.Client.License.csproj", "{DAB8A5A4-B28C-4188-9488-1FAE87B1A386}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Siger.Client.Comm", "..\Siger.Client.Comm\Siger.Client.Comm.csproj", "{0ABD7EEE-8EA0-4CF9-A3A3-212FEC98FECA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Siger.VoiceTpm", "..\Siger.VoiceTpm\Siger.VoiceTpm.csproj", "{8C7B053A-9D73-4563-B14E-944C55341D9C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{EFE6913D-4594-4813-97A7-250A9C688368}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EFE6913D-4594-4813-97A7-250A9C688368}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EFE6913D-4594-4813-97A7-250A9C688368}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EFE6913D-4594-4813-97A7-250A9C688368}.Release|Any CPU.Build.0 = Release|Any CPU
{DAB8A5A4-B28C-4188-9488-1FAE87B1A386}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DAB8A5A4-B28C-4188-9488-1FAE87B1A386}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DAB8A5A4-B28C-4188-9488-1FAE87B1A386}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DAB8A5A4-B28C-4188-9488-1FAE87B1A386}.Release|Any CPU.Build.0 = Release|Any CPU
{0ABD7EEE-8EA0-4CF9-A3A3-212FEC98FECA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0ABD7EEE-8EA0-4CF9-A3A3-212FEC98FECA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0ABD7EEE-8EA0-4CF9-A3A3-212FEC98FECA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0ABD7EEE-8EA0-4CF9-A3A3-212FEC98FECA}.Release|Any CPU.Build.0 = Release|Any CPU
{8C7B053A-9D73-4563-B14E-944C55341D9C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8C7B053A-9D73-4563-B14E-944C55341D9C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8C7B053A-9D73-4563-B14E-944C55341D9C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8C7B053A-9D73-4563-B14E-944C55341D9C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {47E5E278-E251-4603-AD7E-DC8F5B561890}
EndGlobalSection
EndGlobal
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Siger.Voice
{
public class TempData
{
public string Template { get; set; }
public int Speed { get; set; }
public MachineStatus MachineStatus { get; set; }
public WeekDate Date { get; set; }
/// <summary>
/// 持续 分钟
/// </summary>
public int Time { get; set; }
public int STime { get; set; }
public int ETime { get; set; }
public int STime2 { get; set; }
public int ETime2 { get; set; }
public TempData()
{
MachineStatus=new MachineStatus();
}
/// <summary>
/// 重复次数
/// </summary>
public int Repeat { get; set; }
}
public class WeekDate
{
/// <summary>
/// 周1
/// </summary>
public int Mon { get; set; }
/// <summary>
/// 周2
/// </summary>
public int Tues { get; set; }
/// <summary>
/// 周3
/// </summary>
public int Wed { get; set; }
/// <summary>
/// 周4
/// </summary>
public int Thur { get; set; }
/// <summary>
/// 周5
/// </summary>
public int Fri { get; set; }
/// <summary>
/// 周6
/// </summary>
public int Sat { get; set; }
/// <summary>
/// 周天
/// </summary>
public int Sun { get; set; }
}
public class MachineStatus
{
public int Down { get; set; }
public int Running { get; set; }
public int Debug { get; set; }
public int Free { get; set; }
public int Fault { get; set; }
}
public class MachineMapping
{
public List<Machine> Machine { get; set; }
}
public class Machine
{
public int Mid { get; set; }
public string Name { get; set; }
}
}
using DotNetSpeech;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Siger.Voice
{
public class Voice
{
public static void Readcontext(string text, int rate = -2)
{
SpVoice sp = new SpVoice();
sp.Rate = rate; //速度设置
SpeechVoiceSpeakFlags sFlags = SpeechVoiceSpeakFlags.SVSFDefault;//.SVSFlagsAsync;
sp.Speak(text, sFlags);
}
}
}
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Siger.Voice")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Siger.Voice")]
[assembly: System.Reflection.AssemblyTitleAttribute("Siger.Voice")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]
// 由 MSBuild WriteCodeFragment 类生成。
is_global = true
build_property.ApplicationManifest =
build_property.StartupObject =
build_property.ApplicationDefaultFont =
build_property.ApplicationHighDpiMode =
build_property.ApplicationUseCompatibleTextRendering =
build_property.ApplicationVisualStyles =
build_property.TargetFramework = net6.0-windows
build_property.TargetPlatformMinVersion = 7.0
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Siger.Voice
build_property.ProjectDir = D:\Code\20220327\Voice\Siger.Voice\
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.Drawing;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
global using global::System.Windows.Forms;
D:\Code\20220327\Siger.Voice\bin\Debug\net6.0-windows\Siger.Voice.exe
D:\Code\20220327\Siger.Voice\bin\Debug\net6.0-windows\Siger.Voice.dll.config
D:\Code\20220327\Siger.Voice\bin\Debug\net6.0-windows\Siger.Voice.deps.json
D:\Code\20220327\Siger.Voice\bin\Debug\net6.0-windows\Siger.Voice.runtimeconfig.json
D:\Code\20220327\Siger.Voice\bin\Debug\net6.0-windows\Siger.Voice.dll
D:\Code\20220327\Siger.Voice\bin\Debug\net6.0-windows\Siger.Voice.pdb
D:\Code\20220327\Siger.Voice\bin\Debug\net6.0-windows\CSRedisCore.dll
D:\Code\20220327\Siger.Voice\bin\Debug\net6.0-windows\log4net.dll
D:\Code\20220327\Siger.Voice\bin\Debug\net6.0-windows\Newtonsoft.Json.dll
D:\Code\20220327\Siger.Voice\bin\Debug\net6.0-windows\System.Management.dll
D:\Code\20220327\Siger.Voice\bin\Debug\net6.0-windows\runtimes\win\lib\net6.0\System.Management.dll
D:\Code\20220327\Siger.Voice\bin\Debug\net6.0-windows\DotNetSpeech.dll
D:\Code\20220327\Siger.Voice\bin\Debug\net6.0-windows\Siger.Client.Comm.dll
D:\Code\20220327\Siger.Voice\bin\Debug\net6.0-windows\Siger.Client.Comm.pdb
D:\Code\20220327\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.csproj.AssemblyReference.cache
D:\Code\20220327\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.FrmMain.resources
D:\Code\20220327\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.FrmRulesSetting.resources
D:\Code\20220327\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.FrmTesting.resources
D:\Code\20220327\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.Properties.Resources.resources
D:\Code\20220327\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.csproj.GenerateResource.cache
D:\Code\20220327\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.GeneratedMSBuildEditorConfig.editorconfig
D:\Code\20220327\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.AssemblyInfoInputs.cache
D:\Code\20220327\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.AssemblyInfo.cs
D:\Code\20220327\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.csproj.CoreCompileInputs.cache
D:\Code\20220327\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.csproj.CopyComplete
D:\Code\20220327\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.dll
D:\Code\20220327\Siger.Voice\obj\Debug\net6.0-windows\refint\Siger.Voice.dll
D:\Code\20220327\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.pdb
D:\Code\20220327\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.genruntimeconfig.cache
D:\Code\20220327\Siger.Voice\obj\Debug\net6.0-windows\ref\Siger.Voice.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Debug\net6.0-windows\Siger.Voice.exe
D:\Code\20220327\Voice\Siger.Voice\bin\Debug\net6.0-windows\Siger.Voice.dll.config
D:\Code\20220327\Voice\Siger.Voice\bin\Debug\net6.0-windows\Siger.Voice.deps.json
D:\Code\20220327\Voice\Siger.Voice\bin\Debug\net6.0-windows\Siger.Voice.runtimeconfig.json
D:\Code\20220327\Voice\Siger.Voice\bin\Debug\net6.0-windows\Siger.Voice.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Debug\net6.0-windows\Siger.Voice.pdb
D:\Code\20220327\Voice\Siger.Voice\bin\Debug\net6.0-windows\CSRedisCore.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Debug\net6.0-windows\log4net.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Debug\net6.0-windows\Newtonsoft.Json.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Debug\net6.0-windows\System.Management.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Debug\net6.0-windows\runtimes\win\lib\net6.0\System.Management.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Debug\net6.0-windows\DotNetSpeech.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Debug\net6.0-windows\Siger.Client.Comm.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Debug\net6.0-windows\Siger.Client.Comm.pdb
D:\Code\20220327\Voice\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.csproj.AssemblyReference.cache
D:\Code\20220327\Voice\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.FrmMain.resources
D:\Code\20220327\Voice\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.FrmRulesSetting.resources
D:\Code\20220327\Voice\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.FrmTesting.resources
D:\Code\20220327\Voice\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.Properties.Resources.resources
D:\Code\20220327\Voice\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.csproj.GenerateResource.cache
D:\Code\20220327\Voice\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.GeneratedMSBuildEditorConfig.editorconfig
D:\Code\20220327\Voice\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.AssemblyInfoInputs.cache
D:\Code\20220327\Voice\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.AssemblyInfo.cs
D:\Code\20220327\Voice\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.csproj.CoreCompileInputs.cache
D:\Code\20220327\Voice\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.csproj.CopyComplete
D:\Code\20220327\Voice\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.dll
D:\Code\20220327\Voice\Siger.Voice\obj\Debug\net6.0-windows\refint\Siger.Voice.dll
D:\Code\20220327\Voice\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.pdb
D:\Code\20220327\Voice\Siger.Voice\obj\Debug\net6.0-windows\Siger.Voice.genruntimeconfig.cache
D:\Code\20220327\Voice\Siger.Voice\obj\Debug\net6.0-windows\ref\Siger.Voice.dll
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"CSRedisCore/3.8.3": {
"dependencies": {
"Newtonsoft.Json": "13.0.1",
"System.ValueTuple": "4.5.0"
},
"runtime": {
"lib/netstandard2.0/CSRedisCore.dll": {
"assemblyVersion": "3.8.3.0",
"fileVersion": "3.8.3.0"
}
}
},
"log4net/2.0.14": {
"dependencies": {
"System.Configuration.ConfigurationManager": "4.5.0"
},
"runtime": {
"lib/netstandard2.0/log4net.dll": {
"assemblyVersion": "2.0.14.0",
"fileVersion": "2.0.14.0"
}
}
},
"Microsoft.NETCore.Platforms/2.0.0": {},
"Newtonsoft.Json/13.0.1": {
"runtime": {
"lib/netstandard2.0/Newtonsoft.Json.dll": {
"assemblyVersion": "13.0.0.0",
"fileVersion": "13.0.1.25517"
}
}
},
"System.CodeDom/6.0.0": {
"runtime": {
"lib/net6.0/System.CodeDom.dll": {
"assemblyVersion": "6.0.0.0",
"fileVersion": "6.0.21.52210"
}
}
},
"System.Configuration.ConfigurationManager/4.5.0": {
"dependencies": {
"System.Security.Cryptography.ProtectedData": "4.5.0",
"System.Security.Permissions": "4.5.0"
},
"runtime": {
"lib/netstandard2.0/System.Configuration.ConfigurationManager.dll": {
"assemblyVersion": "4.0.1.0",
"fileVersion": "4.6.26515.6"
}
}
},
"System.Management/6.0.0": {
"dependencies": {
"System.CodeDom": "6.0.0"
},
"runtime": {
"lib/net6.0/System.Management.dll": {
"assemblyVersion": "4.0.0.0",
"fileVersion": "6.0.21.52210"
}
},
"runtimeTargets": {
"runtimes/win/lib/net6.0/System.Management.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.0.0.0",
"fileVersion": "6.0.21.52210"
}
}
},
"System.Security.AccessControl/4.5.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "2.0.0",
"System.Security.Principal.Windows": "4.5.0"
},
"runtime": {
"lib/netstandard2.0/System.Security.AccessControl.dll": {
"assemblyVersion": "4.1.1.0",
"fileVersion": "4.6.26515.6"
}
},
"runtimeTargets": {
"runtimes/win/lib/netcoreapp2.0/System.Security.AccessControl.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.1.1.0",
"fileVersion": "4.6.26515.6"
}
}
},
"System.Security.Cryptography.ProtectedData/4.5.0": {
"runtime": {
"lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll": {
"assemblyVersion": "4.0.3.0",
"fileVersion": "4.6.26515.6"
}
},
"runtimeTargets": {
"runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.0.3.0",
"fileVersion": "4.6.26515.6"
}
}
},
"System.Security.Permissions/4.5.0": {
"dependencies": {
"System.Security.AccessControl": "4.5.0"
},
"runtime": {
"lib/netstandard2.0/System.Security.Permissions.dll": {
"assemblyVersion": "4.0.1.0",
"fileVersion": "4.6.26515.6"
}
}
},
"System.Security.Principal.Windows/4.5.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "2.0.0"
},
"runtime": {
"lib/netstandard2.0/System.Security.Principal.Windows.dll": {
"assemblyVersion": "4.1.1.0",
"fileVersion": "4.6.26515.6"
}
},
"runtimeTargets": {
"runtimes/unix/lib/netcoreapp2.0/System.Security.Principal.Windows.dll": {
"rid": "unix",
"assetType": "runtime",
"assemblyVersion": "4.1.1.0",
"fileVersion": "4.6.26515.6"
},
"runtimes/win/lib/netcoreapp2.0/System.Security.Principal.Windows.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.1.1.0",
"fileVersion": "4.6.26515.6"
}
}
},
"System.ValueTuple/4.5.0": {}
}
},
"libraries": {
"CSRedisCore/3.8.3": {
"type": "package",
"serviceable": true,
"sha512": "sha512-1ebFg+ikVT+6Ke2WTE4gcXiwhDDoE/EYe64HaOB/3w0SPFgRrRIyx2glYe9DfihDh8ncKBS4T77TrshUkED3Jw==",
"path": "csrediscore/3.8.3",
"hashPath": "csrediscore.3.8.3.nupkg.sha512"
},
"log4net/2.0.14": {
"type": "package",
"serviceable": true,
"sha512": "sha512-KevyXUuhOyhx7l1jWwq6ZGVlRC2Aetg0qDp6rJpfSZGcDPKQDwfOE6yEuVkVf0kEP08NQqBDn/TQ/TJv4wgyhw==",
"path": "log4net/2.0.14",
"hashPath": "log4net.2.0.14.nupkg.sha512"
},
"Microsoft.NETCore.Platforms/2.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-VdLJOCXhZaEMY7Hm2GKiULmn7IEPFE4XC5LPSfBVCUIA8YLZVh846gtfBJalsPQF2PlzdD7ecX7DZEulJ402ZQ==",
"path": "microsoft.netcore.platforms/2.0.0",
"hashPath": "microsoft.netcore.platforms.2.0.0.nupkg.sha512"
},
"Newtonsoft.Json/13.0.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==",
"path": "newtonsoft.json/13.0.1",
"hashPath": "newtonsoft.json.13.0.1.nupkg.sha512"
},
"System.CodeDom/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-CPc6tWO1LAer3IzfZufDBRL+UZQcj5uS207NHALQzP84Vp/z6wF0Aa0YZImOQY8iStY0A2zI/e3ihKNPfUm8XA==",
"path": "system.codedom/6.0.0",
"hashPath": "system.codedom.6.0.0.nupkg.sha512"
},
"System.Configuration.ConfigurationManager/4.5.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-UIFvaFfuKhLr9u5tWMxmVoDPkFeD+Qv8gUuap4aZgVGYSYMdERck4OhLN/2gulAc0nYTEigWXSJNNWshrmxnng==",
"path": "system.configuration.configurationmanager/4.5.0",
"hashPath": "system.configuration.configurationmanager.4.5.0.nupkg.sha512"
},
"System.Management/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-sHsESYMmPDhQuOC66h6AEOs/XowzKsbT9srMbX71TCXP58hkpn1BqBjdmKj1+DCA/WlBETX1K5WjQHwmV0Txrg==",
"path": "system.management/6.0.0",
"hashPath": "system.management.6.0.0.nupkg.sha512"
},
"System.Security.AccessControl/4.5.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-vW8Eoq0TMyz5vAG/6ce483x/CP83fgm4SJe5P8Tb1tZaobcvPrbMEL7rhH1DRdrYbbb6F0vq3OlzmK0Pkwks5A==",
"path": "system.security.accesscontrol/4.5.0",
"hashPath": "system.security.accesscontrol.4.5.0.nupkg.sha512"
},
"System.Security.Cryptography.ProtectedData/4.5.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-wLBKzFnDCxP12VL9ANydSYhk59fC4cvOr9ypYQLPnAj48NQIhqnjdD2yhP8yEKyBJEjERWS9DisKL7rX5eU25Q==",
"path": "system.security.cryptography.protecteddata/4.5.0",
"hashPath": "system.security.cryptography.protecteddata.4.5.0.nupkg.sha512"
},
"System.Security.Permissions/4.5.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-9gdyuARhUR7H+p5CjyUB/zPk7/Xut3wUSP8NJQB6iZr8L3XUXTMdoLeVAg9N4rqF8oIpE7MpdqHdDHQ7XgJe0g==",
"path": "system.security.permissions/4.5.0",
"hashPath": "system.security.permissions.4.5.0.nupkg.sha512"
},
"System.Security.Principal.Windows/4.5.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-U77HfRXlZlOeIXd//Yoj6Jnk8AXlbeisf1oq1os+hxOGVnuG+lGSfGqTwTZBoORFF6j/0q7HXIl8cqwQ9aUGqQ==",
"path": "system.security.principal.windows/4.5.0",
"hashPath": "system.security.principal.windows.4.5.0.nupkg.sha512"
},
"System.ValueTuple/4.5.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-okurQJO6NRE/apDIP23ajJ0hpiNmJ+f0BwOlB/cSqTLQlw5upkf+5+96+iG2Jw40G1fCVCyPz/FhIABUjMR+RQ==",
"path": "system.valuetuple/4.5.0",
"hashPath": "system.valuetuple.4.5.0.nupkg.sha512"
}
}
}
\ No newline at end of file
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
],
"additionalProbingPaths": [
"C:\\Users\\jws\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\jws\\.nuget\\packages",
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configProperties": {
"Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true
}
}
}
\ No newline at end of file
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\publish\Siger.Voice.exe
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\publish\Siger.Voice.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\publish\Siger.Voice.deps.json
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\publish\Siger.Voice.runtimeconfig.json
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\publish\Siger.Voice.dll.config
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\publish\Siger.Voice.pdb
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\publish\CSRedisCore.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\publish\log4net.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\publish\Newtonsoft.Json.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\publish\System.Management.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\publish\runtimes\win\lib\net6.0\System.Management.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\publish\DotNetSpeech.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\publish\Siger.Client.Comm.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\publish\Siger.Client.Comm.pdb
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Siger.Voice")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Siger.Voice")]
[assembly: System.Reflection.AssemblyTitleAttribute("Siger.Voice")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]
// 由 MSBuild WriteCodeFragment 类生成。
is_global = true
build_property.ApplicationManifest =
build_property.StartupObject =
build_property.ApplicationDefaultFont =
build_property.ApplicationHighDpiMode =
build_property.ApplicationUseCompatibleTextRendering =
build_property.ApplicationVisualStyles =
build_property.TargetFramework = net6.0-windows
build_property.TargetPlatformMinVersion = 7.0
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Siger.Voice
build_property.ProjectDir = D:\Code\20220327\Voice\Siger.Voice\
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.Drawing;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
global using global::System.Windows.Forms;
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\Siger.Voice.exe
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\Siger.Voice.dll.config
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\Siger.Voice.deps.json
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\Siger.Voice.runtimeconfig.json
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\Siger.Voice.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\Siger.Voice.pdb
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\CSRedisCore.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\log4net.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\Newtonsoft.Json.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\System.Management.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\runtimes\win\lib\net6.0\System.Management.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\DotNetSpeech.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\Siger.Client.Comm.dll
D:\Code\20220327\Voice\Siger.Voice\bin\Release\net6.0-windows\Siger.Client.Comm.pdb
D:\Code\20220327\Voice\Siger.Voice\obj\Release\net6.0-windows\Siger.Voice.csproj.AssemblyReference.cache
D:\Code\20220327\Voice\Siger.Voice\obj\Release\net6.0-windows\Siger.Voice.FrmMain.resources
D:\Code\20220327\Voice\Siger.Voice\obj\Release\net6.0-windows\Siger.Voice.FrmRulesSetting.resources
D:\Code\20220327\Voice\Siger.Voice\obj\Release\net6.0-windows\Siger.Voice.FrmTesting.resources
D:\Code\20220327\Voice\Siger.Voice\obj\Release\net6.0-windows\Siger.Voice.Properties.Resources.resources
D:\Code\20220327\Voice\Siger.Voice\obj\Release\net6.0-windows\Siger.Voice.csproj.GenerateResource.cache
D:\Code\20220327\Voice\Siger.Voice\obj\Release\net6.0-windows\Siger.Voice.GeneratedMSBuildEditorConfig.editorconfig
D:\Code\20220327\Voice\Siger.Voice\obj\Release\net6.0-windows\Siger.Voice.AssemblyInfoInputs.cache
D:\Code\20220327\Voice\Siger.Voice\obj\Release\net6.0-windows\Siger.Voice.AssemblyInfo.cs
D:\Code\20220327\Voice\Siger.Voice\obj\Release\net6.0-windows\Siger.Voice.csproj.CoreCompileInputs.cache
D:\Code\20220327\Voice\Siger.Voice\obj\Release\net6.0-windows\Siger.Voice.csproj.CopyComplete
D:\Code\20220327\Voice\Siger.Voice\obj\Release\net6.0-windows\Siger.Voice.dll
D:\Code\20220327\Voice\Siger.Voice\obj\Release\net6.0-windows\refint\Siger.Voice.dll
D:\Code\20220327\Voice\Siger.Voice\obj\Release\net6.0-windows\Siger.Voice.pdb
D:\Code\20220327\Voice\Siger.Voice\obj\Release\net6.0-windows\Siger.Voice.genruntimeconfig.cache
D:\Code\20220327\Voice\Siger.Voice\obj\Release\net6.0-windows\ref\Siger.Voice.dll
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"CSRedisCore/3.8.3": {
"dependencies": {
"Newtonsoft.Json": "13.0.1",
"System.ValueTuple": "4.5.0"
},
"runtime": {
"lib/netstandard2.0/CSRedisCore.dll": {
"assemblyVersion": "3.8.3.0",
"fileVersion": "3.8.3.0"
}
}
},
"log4net/2.0.14": {
"dependencies": {
"System.Configuration.ConfigurationManager": "4.5.0"
},
"runtime": {
"lib/netstandard2.0/log4net.dll": {
"assemblyVersion": "2.0.14.0",
"fileVersion": "2.0.14.0"
}
}
},
"Microsoft.NETCore.Platforms/2.0.0": {},
"Newtonsoft.Json/13.0.1": {
"runtime": {
"lib/netstandard2.0/Newtonsoft.Json.dll": {
"assemblyVersion": "13.0.0.0",
"fileVersion": "13.0.1.25517"
}
}
},
"System.CodeDom/6.0.0": {
"runtime": {
"lib/net6.0/System.CodeDom.dll": {
"assemblyVersion": "6.0.0.0",
"fileVersion": "6.0.21.52210"
}
}
},
"System.Configuration.ConfigurationManager/4.5.0": {
"dependencies": {
"System.Security.Cryptography.ProtectedData": "4.5.0",
"System.Security.Permissions": "4.5.0"
},
"runtime": {
"lib/netstandard2.0/System.Configuration.ConfigurationManager.dll": {
"assemblyVersion": "4.0.1.0",
"fileVersion": "4.6.26515.6"
}
}
},
"System.Management/6.0.0": {
"dependencies": {
"System.CodeDom": "6.0.0"
},
"runtime": {
"lib/net6.0/System.Management.dll": {
"assemblyVersion": "4.0.0.0",
"fileVersion": "6.0.21.52210"
}
},
"runtimeTargets": {
"runtimes/win/lib/net6.0/System.Management.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.0.0.0",
"fileVersion": "6.0.21.52210"
}
}
},
"System.Security.AccessControl/4.5.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "2.0.0",
"System.Security.Principal.Windows": "4.5.0"
},
"runtime": {
"lib/netstandard2.0/System.Security.AccessControl.dll": {
"assemblyVersion": "4.1.1.0",
"fileVersion": "4.6.26515.6"
}
},
"runtimeTargets": {
"runtimes/win/lib/netcoreapp2.0/System.Security.AccessControl.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.1.1.0",
"fileVersion": "4.6.26515.6"
}
}
},
"System.Security.Cryptography.ProtectedData/4.5.0": {
"runtime": {
"lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll": {
"assemblyVersion": "4.0.3.0",
"fileVersion": "4.6.26515.6"
}
},
"runtimeTargets": {
"runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.0.3.0",
"fileVersion": "4.6.26515.6"
}
}
},
"System.Security.Permissions/4.5.0": {
"dependencies": {
"System.Security.AccessControl": "4.5.0"
},
"runtime": {
"lib/netstandard2.0/System.Security.Permissions.dll": {
"assemblyVersion": "4.0.1.0",
"fileVersion": "4.6.26515.6"
}
}
},
"System.Security.Principal.Windows/4.5.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "2.0.0"
},
"runtime": {
"lib/netstandard2.0/System.Security.Principal.Windows.dll": {
"assemblyVersion": "4.1.1.0",
"fileVersion": "4.6.26515.6"
}
},
"runtimeTargets": {
"runtimes/unix/lib/netcoreapp2.0/System.Security.Principal.Windows.dll": {
"rid": "unix",
"assetType": "runtime",
"assemblyVersion": "4.1.1.0",
"fileVersion": "4.6.26515.6"
},
"runtimes/win/lib/netcoreapp2.0/System.Security.Principal.Windows.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.1.1.0",
"fileVersion": "4.6.26515.6"
}
}
},
"System.ValueTuple/4.5.0": {}
}
},
"libraries": {
"CSRedisCore/3.8.3": {
"type": "package",
"serviceable": true,
"sha512": "sha512-1ebFg+ikVT+6Ke2WTE4gcXiwhDDoE/EYe64HaOB/3w0SPFgRrRIyx2glYe9DfihDh8ncKBS4T77TrshUkED3Jw==",
"path": "csrediscore/3.8.3",
"hashPath": "csrediscore.3.8.3.nupkg.sha512"
},
"log4net/2.0.14": {
"type": "package",
"serviceable": true,
"sha512": "sha512-KevyXUuhOyhx7l1jWwq6ZGVlRC2Aetg0qDp6rJpfSZGcDPKQDwfOE6yEuVkVf0kEP08NQqBDn/TQ/TJv4wgyhw==",
"path": "log4net/2.0.14",
"hashPath": "log4net.2.0.14.nupkg.sha512"
},
"Microsoft.NETCore.Platforms/2.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-VdLJOCXhZaEMY7Hm2GKiULmn7IEPFE4XC5LPSfBVCUIA8YLZVh846gtfBJalsPQF2PlzdD7ecX7DZEulJ402ZQ==",
"path": "microsoft.netcore.platforms/2.0.0",
"hashPath": "microsoft.netcore.platforms.2.0.0.nupkg.sha512"
},
"Newtonsoft.Json/13.0.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==",
"path": "newtonsoft.json/13.0.1",
"hashPath": "newtonsoft.json.13.0.1.nupkg.sha512"
},
"System.CodeDom/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-CPc6tWO1LAer3IzfZufDBRL+UZQcj5uS207NHALQzP84Vp/z6wF0Aa0YZImOQY8iStY0A2zI/e3ihKNPfUm8XA==",
"path": "system.codedom/6.0.0",
"hashPath": "system.codedom.6.0.0.nupkg.sha512"
},
"System.Configuration.ConfigurationManager/4.5.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-UIFvaFfuKhLr9u5tWMxmVoDPkFeD+Qv8gUuap4aZgVGYSYMdERck4OhLN/2gulAc0nYTEigWXSJNNWshrmxnng==",
"path": "system.configuration.configurationmanager/4.5.0",
"hashPath": "system.configuration.configurationmanager.4.5.0.nupkg.sha512"
},
"System.Management/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-sHsESYMmPDhQuOC66h6AEOs/XowzKsbT9srMbX71TCXP58hkpn1BqBjdmKj1+DCA/WlBETX1K5WjQHwmV0Txrg==",
"path": "system.management/6.0.0",
"hashPath": "system.management.6.0.0.nupkg.sha512"
},
"System.Security.AccessControl/4.5.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-vW8Eoq0TMyz5vAG/6ce483x/CP83fgm4SJe5P8Tb1tZaobcvPrbMEL7rhH1DRdrYbbb6F0vq3OlzmK0Pkwks5A==",
"path": "system.security.accesscontrol/4.5.0",
"hashPath": "system.security.accesscontrol.4.5.0.nupkg.sha512"
},
"System.Security.Cryptography.ProtectedData/4.5.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-wLBKzFnDCxP12VL9ANydSYhk59fC4cvOr9ypYQLPnAj48NQIhqnjdD2yhP8yEKyBJEjERWS9DisKL7rX5eU25Q==",
"path": "system.security.cryptography.protecteddata/4.5.0",
"hashPath": "system.security.cryptography.protecteddata.4.5.0.nupkg.sha512"
},
"System.Security.Permissions/4.5.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-9gdyuARhUR7H+p5CjyUB/zPk7/Xut3wUSP8NJQB6iZr8L3XUXTMdoLeVAg9N4rqF8oIpE7MpdqHdDHQ7XgJe0g==",
"path": "system.security.permissions/4.5.0",
"hashPath": "system.security.permissions.4.5.0.nupkg.sha512"
},
"System.Security.Principal.Windows/4.5.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-U77HfRXlZlOeIXd//Yoj6Jnk8AXlbeisf1oq1os+hxOGVnuG+lGSfGqTwTZBoORFF6j/0q7HXIl8cqwQ9aUGqQ==",
"path": "system.security.principal.windows/4.5.0",
"hashPath": "system.security.principal.windows.4.5.0.nupkg.sha512"
},
"System.ValueTuple/4.5.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-okurQJO6NRE/apDIP23ajJ0hpiNmJ+f0BwOlB/cSqTLQlw5upkf+5+96+iG2Jw40G1fCVCyPz/FhIABUjMR+RQ==",
"path": "system.valuetuple/4.5.0",
"hashPath": "system.valuetuple.4.5.0.nupkg.sha512"
}
}
}
\ No newline at end of file
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
],
"additionalProbingPaths": [
"C:\\Users\\jws\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\jws\\.nuget\\packages",
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configProperties": {
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
"Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true
}
}
}
\ No newline at end of file
{
"format": 1,
"restore": {
"D:\\Code\\20220327\\Voice\\Siger.Voice\\Siger.Voice.csproj": {}
},
"projects": {
"D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj",
"projectName": "Siger.Client.Comm",
"projectPath": "D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj",
"packagesPath": "C:\\Users\\jws\\.nuget\\packages\\",
"outputPath": "D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\jws\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://61.177.28.246:8081/repository/nuget-hosted/": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"dependencies": {
"System.Management": {
"target": "Package",
"version": "[6.0.0, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.201\\RuntimeIdentifierGraph.json"
}
}
},
"D:\\Code\\20220327\\Voice\\Siger.Voice\\Siger.Voice.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Code\\20220327\\Voice\\Siger.Voice\\Siger.Voice.csproj",
"projectName": "Siger.Voice",
"projectPath": "D:\\Code\\20220327\\Voice\\Siger.Voice\\Siger.Voice.csproj",
"packagesPath": "C:\\Users\\jws\\.nuget\\packages\\",
"outputPath": "D:\\Code\\20220327\\Voice\\Siger.Voice\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\jws\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0-windows7.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://61.177.28.246:8081/repository/nuget-hosted/": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"projectReferences": {
"D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj": {
"projectPath": "D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"dependencies": {
"CSRedisCore": {
"target": "Package",
"version": "[3.8.3, )"
},
"Newtonsoft.Json": {
"target": "Package",
"version": "[13.0.1, )"
},
"System.Management": {
"target": "Package",
"version": "[6.0.0, )"
},
"log4net": {
"target": "Package",
"version": "[2.0.14, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
},
"Microsoft.WindowsDesktop.App.WindowsForms": {
"privateAssets": "none"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.201\\RuntimeIdentifierGraph.json"
}
}
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\jws\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.1.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\jws\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
\ No newline at end of file
{
"version": 3,
"targets": {
"net6.0-windows7.0": {
"CSRedisCore/3.8.3": {
"type": "package",
"dependencies": {
"Newtonsoft.Json": "13.0.1",
"System.ValueTuple": "4.5.0"
},
"compile": {
"lib/netstandard2.0/CSRedisCore.dll": {}
},
"runtime": {
"lib/netstandard2.0/CSRedisCore.dll": {}
}
},
"log4net/2.0.14": {
"type": "package",
"dependencies": {
"System.Configuration.ConfigurationManager": "4.5.0"
},
"compile": {
"lib/netstandard2.0/log4net.dll": {}
},
"runtime": {
"lib/netstandard2.0/log4net.dll": {}
}
},
"Microsoft.NETCore.Platforms/2.0.0": {
"type": "package",
"compile": {
"lib/netstandard1.0/_._": {}
},
"runtime": {
"lib/netstandard1.0/_._": {}
}
},
"Newtonsoft.Json/13.0.1": {
"type": "package",
"compile": {
"lib/netstandard2.0/Newtonsoft.Json.dll": {}
},
"runtime": {
"lib/netstandard2.0/Newtonsoft.Json.dll": {}
}
},
"System.CodeDom/6.0.0": {
"type": "package",
"compile": {
"lib/net6.0/System.CodeDom.dll": {}
},
"runtime": {
"lib/net6.0/System.CodeDom.dll": {}
},
"build": {
"buildTransitive/netcoreapp3.1/_._": {}
}
},
"System.Configuration.ConfigurationManager/4.5.0": {
"type": "package",
"dependencies": {
"System.Security.Cryptography.ProtectedData": "4.5.0",
"System.Security.Permissions": "4.5.0"
},
"compile": {
"ref/netstandard2.0/System.Configuration.ConfigurationManager.dll": {}
},
"runtime": {
"lib/netstandard2.0/System.Configuration.ConfigurationManager.dll": {}
}
},
"System.Management/6.0.0": {
"type": "package",
"dependencies": {
"System.CodeDom": "6.0.0"
},
"compile": {
"lib/net6.0/System.Management.dll": {}
},
"runtime": {
"lib/net6.0/System.Management.dll": {}
},
"build": {
"buildTransitive/netcoreapp3.1/_._": {}
},
"runtimeTargets": {
"runtimes/win/lib/net6.0/System.Management.dll": {
"assetType": "runtime",
"rid": "win"
}
}
},
"System.Security.AccessControl/4.5.0": {
"type": "package",
"dependencies": {
"Microsoft.NETCore.Platforms": "2.0.0",
"System.Security.Principal.Windows": "4.5.0"
},
"compile": {
"ref/netstandard2.0/System.Security.AccessControl.dll": {}
},
"runtime": {
"lib/netstandard2.0/System.Security.AccessControl.dll": {}
},
"runtimeTargets": {
"runtimes/win/lib/netcoreapp2.0/System.Security.AccessControl.dll": {
"assetType": "runtime",
"rid": "win"
}
}
},
"System.Security.Cryptography.ProtectedData/4.5.0": {
"type": "package",
"compile": {
"ref/netstandard2.0/_._": {}
},
"runtime": {
"lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll": {}
},
"runtimeTargets": {
"runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll": {
"assetType": "runtime",
"rid": "win"
}
}
},
"System.Security.Permissions/4.5.0": {
"type": "package",
"dependencies": {
"System.Security.AccessControl": "4.5.0"
},
"compile": {
"ref/netstandard2.0/System.Security.Permissions.dll": {}
},
"runtime": {
"lib/netstandard2.0/System.Security.Permissions.dll": {}
}
},
"System.Security.Principal.Windows/4.5.0": {
"type": "package",
"dependencies": {
"Microsoft.NETCore.Platforms": "2.0.0"
},
"compile": {
"ref/netstandard2.0/System.Security.Principal.Windows.dll": {}
},
"runtime": {
"lib/netstandard2.0/System.Security.Principal.Windows.dll": {}
},
"runtimeTargets": {
"runtimes/unix/lib/netcoreapp2.0/System.Security.Principal.Windows.dll": {
"assetType": "runtime",
"rid": "unix"
},
"runtimes/win/lib/netcoreapp2.0/System.Security.Principal.Windows.dll": {
"assetType": "runtime",
"rid": "win"
}
}
},
"System.ValueTuple/4.5.0": {
"type": "package",
"compile": {
"ref/netcoreapp2.0/_._": {}
},
"runtime": {
"lib/netcoreapp2.0/_._": {}
}
},
"Siger.Client.Comm/1.0.0": {
"type": "project",
"framework": ".NETCoreApp,Version=v6.0",
"dependencies": {
"System.Management": "6.0.0"
},
"compile": {
"bin/placeholder/Siger.Client.Comm.dll": {}
},
"runtime": {
"bin/placeholder/Siger.Client.Comm.dll": {}
}
}
}
},
"libraries": {
"CSRedisCore/3.8.3": {
"sha512": "1ebFg+ikVT+6Ke2WTE4gcXiwhDDoE/EYe64HaOB/3w0SPFgRrRIyx2glYe9DfihDh8ncKBS4T77TrshUkED3Jw==",
"type": "package",
"path": "csrediscore/3.8.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"csrediscore.3.8.3.nupkg.sha512",
"csrediscore.nuspec",
"lib/net40/CSRedisCore.dll",
"lib/net40/CSRedisCore.xml",
"lib/net45/CSRedisCore.dll",
"lib/net45/CSRedisCore.xml",
"lib/netstandard2.0/CSRedisCore.dll",
"lib/netstandard2.0/CSRedisCore.xml"
]
},
"log4net/2.0.14": {
"sha512": "KevyXUuhOyhx7l1jWwq6ZGVlRC2Aetg0qDp6rJpfSZGcDPKQDwfOE6yEuVkVf0kEP08NQqBDn/TQ/TJv4wgyhw==",
"type": "package",
"path": "log4net/2.0.14",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net20/log4net.dll",
"lib/net20/log4net.xml",
"lib/net35-client/log4net.dll",
"lib/net35-client/log4net.xml",
"lib/net35/log4net.dll",
"lib/net35/log4net.xml",
"lib/net40-client/log4net.dll",
"lib/net40-client/log4net.xml",
"lib/net40/log4net.dll",
"lib/net40/log4net.xml",
"lib/net45/log4net.dll",
"lib/net45/log4net.xml",
"lib/netstandard1.3/log4net.dll",
"lib/netstandard1.3/log4net.xml",
"lib/netstandard2.0/log4net.dll",
"lib/netstandard2.0/log4net.xml",
"log4net.2.0.14.nupkg.sha512",
"log4net.nuspec",
"package-icon.png"
]
},
"Microsoft.NETCore.Platforms/2.0.0": {
"sha512": "VdLJOCXhZaEMY7Hm2GKiULmn7IEPFE4XC5LPSfBVCUIA8YLZVh846gtfBJalsPQF2PlzdD7ecX7DZEulJ402ZQ==",
"type": "package",
"path": "microsoft.netcore.platforms/2.0.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"lib/netstandard1.0/_._",
"microsoft.netcore.platforms.2.0.0.nupkg.sha512",
"microsoft.netcore.platforms.nuspec",
"runtime.json",
"useSharedDesignerContext.txt",
"version.txt"
]
},
"Newtonsoft.Json/13.0.1": {
"sha512": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==",
"type": "package",
"path": "newtonsoft.json/13.0.1",
"files": [
".nupkg.metadata",
".signature.p7s",
"LICENSE.md",
"lib/net20/Newtonsoft.Json.dll",
"lib/net20/Newtonsoft.Json.xml",
"lib/net35/Newtonsoft.Json.dll",
"lib/net35/Newtonsoft.Json.xml",
"lib/net40/Newtonsoft.Json.dll",
"lib/net40/Newtonsoft.Json.xml",
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
"lib/netstandard1.0/Newtonsoft.Json.dll",
"lib/netstandard1.0/Newtonsoft.Json.xml",
"lib/netstandard1.3/Newtonsoft.Json.dll",
"lib/netstandard1.3/Newtonsoft.Json.xml",
"lib/netstandard2.0/Newtonsoft.Json.dll",
"lib/netstandard2.0/Newtonsoft.Json.xml",
"newtonsoft.json.13.0.1.nupkg.sha512",
"newtonsoft.json.nuspec",
"packageIcon.png"
]
},
"System.CodeDom/6.0.0": {
"sha512": "CPc6tWO1LAer3IzfZufDBRL+UZQcj5uS207NHALQzP84Vp/z6wF0Aa0YZImOQY8iStY0A2zI/e3ihKNPfUm8XA==",
"type": "package",
"path": "system.codedom/6.0.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"buildTransitive/netcoreapp2.0/System.CodeDom.targets",
"buildTransitive/netcoreapp3.1/_._",
"lib/net461/System.CodeDom.dll",
"lib/net461/System.CodeDom.xml",
"lib/net6.0/System.CodeDom.dll",
"lib/net6.0/System.CodeDom.xml",
"lib/netstandard2.0/System.CodeDom.dll",
"lib/netstandard2.0/System.CodeDom.xml",
"system.codedom.6.0.0.nupkg.sha512",
"system.codedom.nuspec",
"useSharedDesignerContext.txt"
]
},
"System.Configuration.ConfigurationManager/4.5.0": {
"sha512": "UIFvaFfuKhLr9u5tWMxmVoDPkFeD+Qv8gUuap4aZgVGYSYMdERck4OhLN/2gulAc0nYTEigWXSJNNWshrmxnng==",
"type": "package",
"path": "system.configuration.configurationmanager/4.5.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"lib/net461/System.Configuration.ConfigurationManager.dll",
"lib/netstandard2.0/System.Configuration.ConfigurationManager.dll",
"ref/net461/System.Configuration.ConfigurationManager.dll",
"ref/net461/System.Configuration.ConfigurationManager.xml",
"ref/netstandard2.0/System.Configuration.ConfigurationManager.dll",
"ref/netstandard2.0/System.Configuration.ConfigurationManager.xml",
"system.configuration.configurationmanager.4.5.0.nupkg.sha512",
"system.configuration.configurationmanager.nuspec",
"useSharedDesignerContext.txt",
"version.txt"
]
},
"System.Management/6.0.0": {
"sha512": "sHsESYMmPDhQuOC66h6AEOs/XowzKsbT9srMbX71TCXP58hkpn1BqBjdmKj1+DCA/WlBETX1K5WjQHwmV0Txrg==",
"type": "package",
"path": "system.management/6.0.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"buildTransitive/netcoreapp2.0/System.Management.targets",
"buildTransitive/netcoreapp3.1/_._",
"lib/net461/_._",
"lib/net6.0/System.Management.dll",
"lib/net6.0/System.Management.xml",
"lib/netcoreapp3.1/System.Management.dll",
"lib/netcoreapp3.1/System.Management.xml",
"lib/netstandard2.0/System.Management.dll",
"lib/netstandard2.0/System.Management.xml",
"runtimes/win/lib/net6.0/System.Management.dll",
"runtimes/win/lib/net6.0/System.Management.xml",
"runtimes/win/lib/netcoreapp3.1/System.Management.dll",
"runtimes/win/lib/netcoreapp3.1/System.Management.xml",
"system.management.6.0.0.nupkg.sha512",
"system.management.nuspec",
"useSharedDesignerContext.txt"
]
},
"System.Security.AccessControl/4.5.0": {
"sha512": "vW8Eoq0TMyz5vAG/6ce483x/CP83fgm4SJe5P8Tb1tZaobcvPrbMEL7rhH1DRdrYbbb6F0vq3OlzmK0Pkwks5A==",
"type": "package",
"path": "system.security.accesscontrol/4.5.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"lib/net46/System.Security.AccessControl.dll",
"lib/net461/System.Security.AccessControl.dll",
"lib/netstandard1.3/System.Security.AccessControl.dll",
"lib/netstandard2.0/System.Security.AccessControl.dll",
"lib/uap10.0.16299/_._",
"ref/net46/System.Security.AccessControl.dll",
"ref/net461/System.Security.AccessControl.dll",
"ref/net461/System.Security.AccessControl.xml",
"ref/netstandard1.3/System.Security.AccessControl.dll",
"ref/netstandard1.3/System.Security.AccessControl.xml",
"ref/netstandard1.3/de/System.Security.AccessControl.xml",
"ref/netstandard1.3/es/System.Security.AccessControl.xml",
"ref/netstandard1.3/fr/System.Security.AccessControl.xml",
"ref/netstandard1.3/it/System.Security.AccessControl.xml",
"ref/netstandard1.3/ja/System.Security.AccessControl.xml",
"ref/netstandard1.3/ko/System.Security.AccessControl.xml",
"ref/netstandard1.3/ru/System.Security.AccessControl.xml",
"ref/netstandard1.3/zh-hans/System.Security.AccessControl.xml",
"ref/netstandard1.3/zh-hant/System.Security.AccessControl.xml",
"ref/netstandard2.0/System.Security.AccessControl.dll",
"ref/netstandard2.0/System.Security.AccessControl.xml",
"ref/uap10.0.16299/_._",
"runtimes/win/lib/net46/System.Security.AccessControl.dll",
"runtimes/win/lib/net461/System.Security.AccessControl.dll",
"runtimes/win/lib/netcoreapp2.0/System.Security.AccessControl.dll",
"runtimes/win/lib/netstandard1.3/System.Security.AccessControl.dll",
"runtimes/win/lib/uap10.0.16299/_._",
"system.security.accesscontrol.4.5.0.nupkg.sha512",
"system.security.accesscontrol.nuspec",
"useSharedDesignerContext.txt",
"version.txt"
]
},
"System.Security.Cryptography.ProtectedData/4.5.0": {
"sha512": "wLBKzFnDCxP12VL9ANydSYhk59fC4cvOr9ypYQLPnAj48NQIhqnjdD2yhP8yEKyBJEjERWS9DisKL7rX5eU25Q==",
"type": "package",
"path": "system.security.cryptography.protecteddata/4.5.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"lib/MonoAndroid10/_._",
"lib/MonoTouch10/_._",
"lib/net46/System.Security.Cryptography.ProtectedData.dll",
"lib/net461/System.Security.Cryptography.ProtectedData.dll",
"lib/netstandard1.3/System.Security.Cryptography.ProtectedData.dll",
"lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll",
"lib/xamarinios10/_._",
"lib/xamarinmac20/_._",
"lib/xamarintvos10/_._",
"lib/xamarinwatchos10/_._",
"ref/MonoAndroid10/_._",
"ref/MonoTouch10/_._",
"ref/net46/System.Security.Cryptography.ProtectedData.dll",
"ref/net461/System.Security.Cryptography.ProtectedData.dll",
"ref/net461/System.Security.Cryptography.ProtectedData.xml",
"ref/netstandard1.3/System.Security.Cryptography.ProtectedData.dll",
"ref/netstandard2.0/System.Security.Cryptography.ProtectedData.dll",
"ref/netstandard2.0/System.Security.Cryptography.ProtectedData.xml",
"ref/xamarinios10/_._",
"ref/xamarinmac20/_._",
"ref/xamarintvos10/_._",
"ref/xamarinwatchos10/_._",
"runtimes/win/lib/net46/System.Security.Cryptography.ProtectedData.dll",
"runtimes/win/lib/net461/System.Security.Cryptography.ProtectedData.dll",
"runtimes/win/lib/netstandard1.3/System.Security.Cryptography.ProtectedData.dll",
"runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll",
"system.security.cryptography.protecteddata.4.5.0.nupkg.sha512",
"system.security.cryptography.protecteddata.nuspec",
"useSharedDesignerContext.txt",
"version.txt"
]
},
"System.Security.Permissions/4.5.0": {
"sha512": "9gdyuARhUR7H+p5CjyUB/zPk7/Xut3wUSP8NJQB6iZr8L3XUXTMdoLeVAg9N4rqF8oIpE7MpdqHdDHQ7XgJe0g==",
"type": "package",
"path": "system.security.permissions/4.5.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"lib/net461/System.Security.Permissions.dll",
"lib/netstandard2.0/System.Security.Permissions.dll",
"ref/net461/System.Security.Permissions.dll",
"ref/net461/System.Security.Permissions.xml",
"ref/netstandard2.0/System.Security.Permissions.dll",
"ref/netstandard2.0/System.Security.Permissions.xml",
"system.security.permissions.4.5.0.nupkg.sha512",
"system.security.permissions.nuspec",
"useSharedDesignerContext.txt",
"version.txt"
]
},
"System.Security.Principal.Windows/4.5.0": {
"sha512": "U77HfRXlZlOeIXd//Yoj6Jnk8AXlbeisf1oq1os+hxOGVnuG+lGSfGqTwTZBoORFF6j/0q7HXIl8cqwQ9aUGqQ==",
"type": "package",
"path": "system.security.principal.windows/4.5.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"lib/net46/System.Security.Principal.Windows.dll",
"lib/net461/System.Security.Principal.Windows.dll",
"lib/netstandard1.3/System.Security.Principal.Windows.dll",
"lib/netstandard2.0/System.Security.Principal.Windows.dll",
"lib/uap10.0.16299/_._",
"ref/net46/System.Security.Principal.Windows.dll",
"ref/net461/System.Security.Principal.Windows.dll",
"ref/net461/System.Security.Principal.Windows.xml",
"ref/netstandard1.3/System.Security.Principal.Windows.dll",
"ref/netstandard1.3/System.Security.Principal.Windows.xml",
"ref/netstandard1.3/de/System.Security.Principal.Windows.xml",
"ref/netstandard1.3/es/System.Security.Principal.Windows.xml",
"ref/netstandard1.3/fr/System.Security.Principal.Windows.xml",
"ref/netstandard1.3/it/System.Security.Principal.Windows.xml",
"ref/netstandard1.3/ja/System.Security.Principal.Windows.xml",
"ref/netstandard1.3/ko/System.Security.Principal.Windows.xml",
"ref/netstandard1.3/ru/System.Security.Principal.Windows.xml",
"ref/netstandard1.3/zh-hans/System.Security.Principal.Windows.xml",
"ref/netstandard1.3/zh-hant/System.Security.Principal.Windows.xml",
"ref/netstandard2.0/System.Security.Principal.Windows.dll",
"ref/netstandard2.0/System.Security.Principal.Windows.xml",
"ref/uap10.0.16299/_._",
"runtimes/unix/lib/netcoreapp2.0/System.Security.Principal.Windows.dll",
"runtimes/win/lib/net46/System.Security.Principal.Windows.dll",
"runtimes/win/lib/net461/System.Security.Principal.Windows.dll",
"runtimes/win/lib/netcoreapp2.0/System.Security.Principal.Windows.dll",
"runtimes/win/lib/netstandard1.3/System.Security.Principal.Windows.dll",
"runtimes/win/lib/uap10.0.16299/_._",
"system.security.principal.windows.4.5.0.nupkg.sha512",
"system.security.principal.windows.nuspec",
"useSharedDesignerContext.txt",
"version.txt"
]
},
"System.ValueTuple/4.5.0": {
"sha512": "okurQJO6NRE/apDIP23ajJ0hpiNmJ+f0BwOlB/cSqTLQlw5upkf+5+96+iG2Jw40G1fCVCyPz/FhIABUjMR+RQ==",
"type": "package",
"path": "system.valuetuple/4.5.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"lib/MonoAndroid10/_._",
"lib/MonoTouch10/_._",
"lib/net461/System.ValueTuple.dll",
"lib/net461/System.ValueTuple.xml",
"lib/net47/System.ValueTuple.dll",
"lib/net47/System.ValueTuple.xml",
"lib/netcoreapp2.0/_._",
"lib/netstandard1.0/System.ValueTuple.dll",
"lib/netstandard1.0/System.ValueTuple.xml",
"lib/netstandard2.0/_._",
"lib/portable-net40+sl4+win8+wp8/System.ValueTuple.dll",
"lib/portable-net40+sl4+win8+wp8/System.ValueTuple.xml",
"lib/uap10.0.16299/_._",
"lib/xamarinios10/_._",
"lib/xamarinmac20/_._",
"lib/xamarintvos10/_._",
"lib/xamarinwatchos10/_._",
"ref/MonoAndroid10/_._",
"ref/MonoTouch10/_._",
"ref/net461/System.ValueTuple.dll",
"ref/net47/System.ValueTuple.dll",
"ref/netcoreapp2.0/_._",
"ref/netstandard2.0/_._",
"ref/portable-net40+sl4+win8+wp8/System.ValueTuple.dll",
"ref/uap10.0.16299/_._",
"ref/xamarinios10/_._",
"ref/xamarinmac20/_._",
"ref/xamarintvos10/_._",
"ref/xamarinwatchos10/_._",
"system.valuetuple.4.5.0.nupkg.sha512",
"system.valuetuple.nuspec",
"useSharedDesignerContext.txt",
"version.txt"
]
},
"Siger.Client.Comm/1.0.0": {
"type": "project",
"path": "../Siger.Client.Comm/Siger.Client.Comm.csproj",
"msbuildProject": "../Siger.Client.Comm/Siger.Client.Comm.csproj"
}
},
"projectFileDependencyGroups": {
"net6.0-windows7.0": [
"CSRedisCore >= 3.8.3",
"Newtonsoft.Json >= 13.0.1",
"Siger.Client.Comm >= 1.0.0",
"System.Management >= 6.0.0",
"log4net >= 2.0.14"
]
},
"packageFolders": {
"C:\\Users\\jws\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Code\\20220327\\Voice\\Siger.Voice\\Siger.Voice.csproj",
"projectName": "Siger.Voice",
"projectPath": "D:\\Code\\20220327\\Voice\\Siger.Voice\\Siger.Voice.csproj",
"packagesPath": "C:\\Users\\jws\\.nuget\\packages\\",
"outputPath": "D:\\Code\\20220327\\Voice\\Siger.Voice\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\jws\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0-windows7.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://61.177.28.246:8081/repository/nuget-hosted/": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"projectReferences": {
"D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj": {
"projectPath": "D:\\Code\\20220327\\Voice\\Siger.Client.Comm\\Siger.Client.Comm.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"dependencies": {
"CSRedisCore": {
"target": "Package",
"version": "[3.8.3, )"
},
"Newtonsoft.Json": {
"target": "Package",
"version": "[13.0.1, )"
},
"System.Management": {
"target": "Package",
"version": "[6.0.0, )"
},
"log4net": {
"target": "Package",
"version": "[2.0.14, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
},
"Microsoft.WindowsDesktop.App.WindowsForms": {
"privateAssets": "none"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.201\\RuntimeIdentifierGraph.json"
}
}
}
}
\ No newline at end of file
{
"version": 2,
"dgSpecHash": "+v/bRgaiV4De+75OcA2EcGZEQX4d/VecelTSDnkFxdPAsJ3cbwO70aLp7Rt6a112+yIrWyB4oVB0hs5K1UqJxA==",
"success": true,
"projectFilePath": "D:\\Code\\20220327\\Voice\\Siger.Voice\\Siger.Voice.csproj",
"expectedPackageFiles": [
"C:\\Users\\jws\\.nuget\\packages\\csrediscore\\3.8.3\\csrediscore.3.8.3.nupkg.sha512",
"C:\\Users\\jws\\.nuget\\packages\\log4net\\2.0.14\\log4net.2.0.14.nupkg.sha512",
"C:\\Users\\jws\\.nuget\\packages\\microsoft.netcore.platforms\\2.0.0\\microsoft.netcore.platforms.2.0.0.nupkg.sha512",
"C:\\Users\\jws\\.nuget\\packages\\newtonsoft.json\\13.0.1\\newtonsoft.json.13.0.1.nupkg.sha512",
"C:\\Users\\jws\\.nuget\\packages\\system.codedom\\6.0.0\\system.codedom.6.0.0.nupkg.sha512",
"C:\\Users\\jws\\.nuget\\packages\\system.configuration.configurationmanager\\4.5.0\\system.configuration.configurationmanager.4.5.0.nupkg.sha512",
"C:\\Users\\jws\\.nuget\\packages\\system.management\\6.0.0\\system.management.6.0.0.nupkg.sha512",
"C:\\Users\\jws\\.nuget\\packages\\system.security.accesscontrol\\4.5.0\\system.security.accesscontrol.4.5.0.nupkg.sha512",
"C:\\Users\\jws\\.nuget\\packages\\system.security.cryptography.protecteddata\\4.5.0\\system.security.cryptography.protecteddata.4.5.0.nupkg.sha512",
"C:\\Users\\jws\\.nuget\\packages\\system.security.permissions\\4.5.0\\system.security.permissions.4.5.0.nupkg.sha512",
"C:\\Users\\jws\\.nuget\\packages\\system.security.principal.windows\\4.5.0\\system.security.principal.windows.4.5.0.nupkg.sha512",
"C:\\Users\\jws\\.nuget\\packages\\system.valuetuple\\4.5.0\\system.valuetuple.4.5.0.nupkg.sha512"
],
"logs": []
}
\ No newline at end of file
# Rules in this file were initially inferred by Visual Studio IntelliCode from the D:\Code\20220327\Voice\Siger.VoiceTpm\ codebase based on best match to current usage at 2022/12/23
# You can modify the rules from these initially generated values to suit your own policies
# You can learn more about editorconfig here: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
[*.cs]
#Core editorconfig formatting - indentation
#use soft tabs (spaces) for indentation
indent_style = space
#Formatting - spacing options
#require a space after a keyword in a control flow statement such as a for loop
csharp_space_after_keywords_in_control_flow_statements = true
#do not place space characters after the opening parenthesis and before the closing parenthesis of a method call
csharp_space_between_method_call_parameter_list_parentheses = false
#place a space character after the opening parenthesis and before the closing parenthesis of a method declaration parameter list.
csharp_space_between_method_declaration_parameter_list_parentheses = false
#Style - Code block preferences
#prefer curly braces even for one line of code
csharp_prefer_braces = true:suggestion
#Style - expression bodied member options
#prefer block bodies for constructors
csharp_style_expression_bodied_constructors = false:suggestion
#Style - language keyword and framework type options
#prefer the language keyword for local variables, method parameters, and class members, instead of the type name, for types that have a keyword to represent them
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
#Style - modifier options
#prefer accessibility modifiers to be declared except for public interface members. This will currently not differ from always and will act as future proofing for if C# adds default interface methods.
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
#Style - Modifier preferences
#when this rule is set to a list of modifiers, prefer the specified ordering.
csharp_preferred_modifier_order = public,private,internal,protected,static,override:suggestion
#Style - qualification options
#prefer fields not to be prefaced with this. or Me. in Visual Basic
dotnet_style_qualification_for_field = false:suggestion
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<appSettings>
<add key="CompanyId" value="2095"/>
<add key="ProjectId" value="1750"/>
<add key="CompanyDesc" value="芜湖SKF"/>
<add key="Url" value="https://cloud.siger-data.com/apis"/>
<!--语速-->
<add key="SpeekRate" value="1"/>
<!--重复次数-->
<add key="Repeat" value="1"/>
</appSettings>
<log4net>
<root>
<!--<level value="ERROR"/>-->
<appender-ref ref="RollingFileAppender"/>
</root>
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
<!--日志文件名开头-->
<file value="logs/Log.log"/>
<!--多线程时采用最小锁定-->
<lockingModel type="log4net.Appender.FileAppender+MinimalLock"/>
<!--日期的格式,每天换一个文件记录,如不设置则永远只记录一天的日志,需设置-->
<datePattern value="yyyy.MM.dd"/>
<!--是否追加到文件,默认为true,通常无需设置-->
<appendToFile value="true"/>
<RollingStyle value="Size"/>
<MaxSizeRollBackups value="10"/>
<maximumFileSize value="2MB"/>
<!--日志格式-->
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%t]%-5p %c - %m%n"/>
</layout>
</appender>
</log4net>
</configuration>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Siger.VoiceTpm
{
public class BaseConfig
{
/// <summary>
/// 后端时间
/// </summary>
public string Url { get; set; }
/// <summary>
///
/// </summary>
public int CompanyId { get; set; }
/// <summary>
/// 项目ID
/// </summary>
public int ProjectId { get; set; }
/// <summary>
/// 公司描述
/// </summary>
public string CompanyDesc { get; set; }
/// <summary>
/// 播报语速
/// </summary>
public int SpeekRate { get; set; }
/// <summary>
/// 重复播放
/// </summary>
public int Repeat { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Siger.VoiceTpm
{
internal class ConfigureHelper
{
public static T GetAppSetting<T>(string name)
{
var result = ConfigurationManager.AppSettings[name];
if (string.IsNullOrWhiteSpace(result))
{
throw new Exception(name + " 配置值错误!");
}
if (typeof(int) == typeof(T))
{
if (int.TryParse(result, out var res) && res > 0)
{
return (T)(object)res;
}
}
else if (typeof(string) == typeof(T))
{
return (T)(object)result;
}
else if (typeof(string[]) == typeof(T))
{
return (T)(object)result.Split(',');
}
throw new Exception(name + " 配置值错误!");
}
}
}
namespace Siger.VoiceTpm
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(16, 266);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(114, 55);
this.button1.TabIndex = 0;
this.button1.Text = "测试";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(16, 229);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(32, 17);
this.label1.TabIndex = 1;
this.label1.Text = "语速";
//
// comboBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"-5",
"-4",
"-3",
"-2",
"-1",
"0",
"1",
"2",
"3",
"4",
"5"});
this.comboBox1.Location = new System.Drawing.Point(65, 226);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(62, 25);
this.comboBox1.TabIndex = 2;
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(3, -2);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(458, 167);
this.textBox1.TabIndex = 3;
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(239, 171);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(222, 170);
this.pictureBox1.TabIndex = 4;
this.pictureBox1.TabStop = false;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(466, 347);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.MaximumSize = new System.Drawing.Size(482, 386);
this.MinimumSize = new System.Drawing.Size(482, 386);
this.Name = "Form1";
this.Text = "设备管理语音播报";
this.Load += new System.EventHandler(this.Form1_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Button button1;
private Label label1;
private ComboBox comboBox1;
private TextBox textBox1;
private PictureBox pictureBox1;
}
}
\ No newline at end of file
using log4net;
using Newtonsoft.Json;
namespace Siger.VoiceTpm
{
public partial class Form1 : Form
{
public Form1(BaseConfig baseConfig)
{
InitializeComponent();
this.baseConfig = baseConfig;
}
int speekRate = 0;
private readonly BaseConfig baseConfig;
private static readonly ILog log = LogManager.GetLogger(typeof(Form1).Name);
private void button1_Click(object sender, EventArgs e)
{
if (comboBox1.SelectedItem != null)
{
int.TryParse(comboBox1.SelectedItem.ToString(), out int _speekRate);
speekRate = _speekRate;
}
var testTxt = $"{baseConfig.CompanyDesc}语音播报系统 语速 {speekRate} 重复{baseConfig.Repeat}次";
for (int i = 0; i <= baseConfig.Repeat; i++)
{
Voice.Readcontext(testTxt, speekRate);
}
}
private void Form1_Load(object sender, EventArgs e)
{
this.Text = $"{baseConfig.CompanyDesc}语音播报系统 语速 {baseConfig.SpeekRate} 重复播放{baseConfig.Repeat}次";
comboBox1.SelectedIndex = 6;
int.TryParse(comboBox1.SelectedItem.ToString(), out int _speekRate);
speekRate = _speekRate;
try
{
var thread = new Thread(Process)
{
IsBackground = true
};
thread.Start();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
private void Process()
{
while (true)
{
GetMessage();
Thread.Sleep(1000 * 60 * 1); // 1分钟
}
}
void GetMessage()
{
try
{
var url = string.Format("{0}/tpm/Andon/QueryAndonMessage?companyId={1}&projectId={2}", baseConfig.Url, baseConfig.CompanyId, baseConfig.ProjectId);
var result = HttpClientHelper.HttpGet(url);
if (string.IsNullOrEmpty(result))
{
log.Info("GetMessage str is null");
return;
}
var objDict = JsonConvert.DeserializeObject<ResponseObj>(result);
foreach (var dic in objDict.data)
{
log.Info($"key {dic.Key}");
log.Info($"key {dic.Value}");
for (int i = 0; i <= baseConfig.Repeat; i++)
{
Voice.Readcontext(dic.Value, baseConfig.SpeekRate);
Thread.Sleep(1000 * 3);
}
}
}catch (Exception ex)
{
log.Error(ex.Message);
}
}
}
}
\ No newline at end of file
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAwICQoJBwwKCQoNDAwOER0TERAQESMZGxUdKiUsKyklKCgu
NEI4LjE/MigoOk46P0RHSktKLTdRV1FIVkJJSkf/2wBDAQwNDREPESITEyJHMCgwR0dHR0dHR0dHR0dH
R0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0f/wAARCACrANwDASIAAhEBAxEB/8QA
HAAAAgIDAQEAAAAAAAAAAAAAAgMABQEEBgcI/8QAOhAAAQMCBAQGAQIEBAcBAAAAAQACAwQRBRIhMQYy
QVETYXGBkaHBByIUsdHwFSNS4RYzQkNicoLx/8QAGgEBAAMBAQEAAAAAAAAAAAAAAAEDBAIFBv/EACYR
AAMAAgICAgEEAwAAAAAAAAABAgMRBBIhMQUTQRUiMlEjUmH/2gAMAwEAAhEDEQA/APVVFFEAt/MhRP5k
KAJvMmJbeZMQESjzH1TUo8x9UBhEzqhWhVY5hlE8sqatjXDdou4j2CNpLyzqYq3qVstFh2y1KDEaTEYy
+jqGygbgbj1G4W0diiZFJy9NAKKKIQMbyokLeVEgAft7oEb9vdAgInJKcgIlv5kxLfzIAUTeZCibzIBi
iiiAUeY+qwsnmPqsIAs57BTOewQqIAwM4ubhTIFGbe6NABlDRcdO6xnPYIncqWgCznsFnKCLk7oEwbey
A5zjTEJaHDGR07iySd2UuGhAtc28/wCq8+sSd9Sd12v6hxufT0LwbND3A+ZI0/kVxYIaQAA61jc3+Fiz
N99H1fxUyuPte2XGDQVkE4qaEkSMFz/pcOxXoGH1sddStmZYX0c298p6hef09RiT4gyGMhmtrANAut3h
iprMNxp0dW6MUtTof3C7XjY++3uOyYHSen6MfyGL7E7bW0d7kCmQLWqa5kMbnZmgAXzONgqtnEtK5+UV
DC7tpb+YK2bPA0XhcWmw19VM57BaMGJRTOAJHqPz2W5cEAg3B6qQECXaFZyBYZzJiADIFjOewTElAFnP
YLIGcXNwgRs290BMgUyhouOndGhdyoAc57BTOewQqIA8oIuTupkCyNh6IkArK7t9qZXdvtNUQAAhosdF
nMO6F/MhQBkhwIBv7Icru32o3mTUArK7t9oswAtf6RpR5j6oCn4tpTVYHJkbmfG4Pb08j9ErjIIY6UWE
Zml6WBIv2A/J+l22OzSGBtHA0Okn0cTs1vU+vQLTo6CGmAs27/8AUd1i5GWIf/T0uPlucLjekVEdBXVL
c0z/AAgRsN/79kdDhbI8UhD5XSlpLi07C2o79f5K7nc2KJzzoGgk+y5/BMSZU100rXAhrw0knfobeWoV
fHyXlrb9FeV/t8FhiGHSY1iPgTOcKSEAloJGdxF9bbgC2nmU4cI4WGWZSsabbtFj8jVW1G1gleHGznEE
i29gB+FtVlRHRUctTLfJE0uNutlucpsxqn6ODxLDMQ4el/iqKR81KDd0TjfKOtj0/vddJgGLx11PG9jr
tk013a7t+PVUsPGsFdXuoK+kZFG93hktcSWEmwvcC4uRci1kjAad9DjOJUTD+xhEjbdLki/lt9Imk9Et
PR3wFtTpoizDuuPPHtM2pkglopQY3lri1wOxt5K8wvGaHFYyaOa7hzMdo5v9/ClXLetlt8XNjnvU+C0z
Dugyu7fawhqZhGw62sNT2XRnCJDeYgepARNcA3cexuuZqcXle4injzC9sxNr+iKjxWRkoEzSwnQX2Puo
2To6bMO6wSHAgG/skQTtmbdpsRuE5vMpIMZXdvtTK7t9pqiAAOA0v9LOYd0B5j6rCAcolZj3+1Mx7/aA
y/mQo2i41sSs5R2HwgAbzI1hws0lU+K8Q0WGfskkMk1v+WyxI9eg91DaS8ncY7yV1lbZdX0SZHtYC57g
0dybLjcV4oxEQMfTOiha/YD97h77fS5uqxGuqpA+erleWm4Bdpf02CprPK8I9PD8VlyLs3pHZ0Ez5s8s
8rZZXONyNAACbADoLLYqKqCmhdNPI2NjRcucdFyL8VNFh762NmcsYXFl+a2+vRctUYzX8QStLy4gmzI2
AkDyA6nz3Xn3xrq+zfghKezn8o6PFuLY6+pFDCwtpZLse86OcDpca6AXvr9Kk4XqJ6TEXUTxmcwlrgd7
tP5H4VphPBU8wEta/wABp1yN1cfU7D7Vu7AoqDEZq65cZg27j0IFre+hv3V8ZcUL64OIj/JuvRe4fiMM
gj8SQMlAs15Ojh2PYjz39VYVtRDiGHzUklx4jC3M2xse/sbFcJVNlmqs8IcxoO17XPcea2WVLooTmqHQ
yC+h/aSL6aHQ+ostXba1sy3C77n0Mp+EKdlU6qqZ5J5HG5a0kAnzNyT9K0iEGHuq6uaUGWWxcAdgNA31
JJ9yuRqsWrZHmNtfI7pZgA38wVt1eGvqOGagAv8AHaBK0kkm7SD7kgEe64SUPdMldr8JejXFDLVulqy3
LJcmUAWGuzvQ/wBUWD1L6DFoZo3fuZIGusdC0kA/RWvJjH8NJJAxz7PhbmyfGvX4VxwZgc+IVrcQqI3M
pg4Ps7TMRsPnU/Cq6078H0M8iVxm8nrR6Nf9tyqPiWsENIyMmxlOuvQan8J+J43TUuJQYa1zXVEzgCL8
oP8Aei5fj2aUYnSQxk5fDc4+5A/C2bXo+YqKlJv8jKecPIAIIGmitY42viyuaCDpYrm8LBYAXG5Pur+G
rpmVIpZJmtmNhkO4J2BO1/LdG9CZdekb1C6SCQRuJJGrSeo7FXcbg6xCqXM/aHAfuabj8/SsaV4LC0Ha
xBHmiZy0baiVmPf7UzHv9rogh5j6rCYACL2HwplHYfCAWojyef0pk8/pARm3ujQXyabqZ/L7QFbxHVy0
WA1VRAbSNaA09iTa/wBrzAF0r7ucXOcbkk3JJ6kr1PGqY1uD1NMwXc+M5R5jULyuEsJs+4tpYDr2Kycj
e1/R9H8M5+uv7DqI3wSmN4uW9nXtpfuVrh93EEHboLq+wulgkkuwAPcLAPByi+nXfS6LGsPgw8COQtEj
hcOb+eyy7Wz01yErWNryV1NWUYwKqpqimkfM4kRlumhFjf7+Vd8IYNRUGHRPp4v8x7bue7Vxv59B5Bci
+pbG0Na67nEgXXf8PC2FQX6tB+lzy7f1pJni8mEuRbRaWAFrIJI2yMLXtDgRqCLgph2Qrzl4M2ykqcJm
Y4upJWkdGS3IHo4a29QVqPosUcC009MPPxSR8ZV0tu6mXyV65GReCOqObpcGDZfFqi1zhqGtFgPyVaNY
1rcoAsRayXJidEav+HbWUpeXFjWCZpfmBsRlve99LJzIjNdubKARcg2OpsrpWSrXY6TlS9Fbh/CmF4dV
/wAZik7ql0uscQbZoaLWv1cR7DfRZ4g43hpYjR4E0FzRlMpbZrOn7Qdz7W9VaSNpYWloOtrXXnLmNhkL
SLOa4tN9wQV6WS3C8Is4eGczbyP1+DZwIynHqesqnuc4zNJc43LiSL3JXeY/BG+qjke0G7SAe2t/yvOP
EkEzXMkAtqLHqvRMQqf4vAIa5g2aHut0BFiPb8KMFb9j5OdNNejXpmxMlYbAAELlsSD24tVFxOYTO1vr
uSD8WW1Li8TNXyNHa53T6ZlPj9U1zfEY9oAke1ujgNr3620uraltGXiZpxU+x1eGTOqMNp5XXL3xguPc
21W/RWblHU3afY/7LXpo2QwNijFmsaGjyAFls0rRmA/8jr8rtGSmm20baiPJ5/SmTz+l0cGRsPREl5ra
W281nP5faANRDmHcfKmYdx8oAX8yFE4XNwCfRYynt9ICN5lQ4pwdhmITPnb4lNM83c6IixPmCr9osdii
v6KHKr2WY8t4n2h6ZxjeBqiGRroMWP7eUGGxHuHIangmrqjebF7Ha4hJP25drceSA6nQfV7qv6Y/o0/q
HI/2POan9OJIoxJ/iudsdyR4P7nAnXXNYaeRXT0MbYoGMaAA0WA8gt3Ha+Khw9xlP73gtYwbuP8AsuUi
4l8M2fTC1+jtf5LFy+PeRpQiYzNy6tnUEoVTU/EdHKbSZ4j5i4+lZxVMUzA6KRrmnYg3XnXhyY/5Imbm
vTHLDgcptvbRZBB6qXBCrLDwe9TQ4yyepjeyVk4ecwIJIdc7r2Kd7mgujO4tbyTq7B8Pq3Z6ikilN7kO
FwT3I6rWfI1ouSAFvvOrc1PtCIXlMUyhra6KacSMBjAJaCSSNbkaeSpK3h1lTMZXTOa8jXLoCe/quhoM
V8DFaamjyEVEgY8He1jtrob2Vbxi97YMQpsKkLp4XNEjWaOYHAE29juPPqF6OJ94TaMrqsNvozSf+n+I
PpIqnD62J/iMD8kgLSLi9gRcHfsFc8MwYnTUk+EY7SOjFj4b9Cx7TuA4Ei/W2+q854W4mqsBxqNzKiWS
Bzw2WJ7iQW3107jWy96vHPCCHBzHgEEdR0VnRL0RfJvJPWzzJuCR4bXOidTNcAbte67iR0JJ6rp8Ojjj
YMjWtvuALKwraYFwbLbMNWutoR/fRajGOiJu0nsQLgqSk3w8NZcnQC5WxQ3L23FrAk+p/wD1aMbXSEF4
ysGtjuVaUkZY3M7d3cbIl5I/BtKIcw7j5UzDuPldEAHmPqsLJBJ0Hva91Mp7fSAwooogDZt7o0DNvdGg
BdypaY7lS0BEwbD0S0wbD0QFFxPhkVc2ndI592OIDQbAjrf4C0RgdAWAGBtwNxoVc4hNE+rFOHAyRtD3
NtsHXA/kfhanigzZARoNV43My0smkzdhW8etFFW8NwuYTTOMbtwCbg/lcnUOqKeuMZJLY3fuANrWJvc7
jyIXph1avPsVaHYrUEt/7jhrcX1P0tnx+W8rcU9mXlTMJUkSlxeuha1zJ5G9muJIt5XvdWTOKp47CWJk
gA1OoP5VDYNYQDa50HYpMjXEAktI+F6WTi4b9yYpz5J9M6Sfi3MyzacAkblx/oqLEMbqp7lpDBbZq0nB
zgQMth1zX/khyaWcRob27lVxw8EPaRY+Tlrw2WXC9NVVONtlLniOEh+YnUkAEG+5N7/AXaVmH0U01TWT
wPbVzQmJ08TyC4WsMzb2NtNbX0WlwRhT5aAzZsgc4kuOp7fhdUcJu2zp7/8Az/uvPy/e8u49G6PqUJV7
PLqPgZ/8RepqGeExwsWNsXD30B+V6zREGjiygABoAA2FlrQ4LCwgySSSW/6dh/X7W81oa0NaAABYAdFq
nu3tlNddaRJGNkaWvaHA9Ctb/DgTdkrmi+xF/wCi2kbNvdWnAmGkZGQ5xLyNr9E93KiQu5UAtRRRAMGw
9ESEbD0RIAco7KZR2RKIBZOU2Gmixmd3+ll/MhQBAlxsTfvoiyjshbzJiAHKOyEki48/hMSncx9UBUVM
fh1tTK52YyFttNgGgAfNz7rlqTiOmfXTtka5obIWh1rggEi/0uixipMVJUTtBJa1xAGt7A2Xl9I/wwXE
2JNyb9V5uDjzybuqNGTNWGUkelw4hTTN/wAuZh02vY/C4uvJfXzuBu0yOIPueq0BVOBIa4lxFhbqmRgt
NmOIfbUO1Dv916HG4a49tpmPNyPtnWiOF2k3GpVLWE1DppahxbSQEtyMOr3AgG/uVbyPvqW2IO381WS0
xZUvkjDHxTaSxPNrnuL6XW2vJnjSNaKxqoJ6eN0Qecj2EEAi2ljsdlaZS4iw3JWpT05EolkDW5QRHGzl
YDub9Se62nEkamwvYAdVz+Drw2eucNQx0/D1I2JzXXYCXN2JO/xt7KyzO7/SqOE6N1Dw1SxOGUuBflty
5iTb7VssxqM5nd/pHlHZLTkAOUdkJOU2GmiYlv5kBjM7v9LIJcbE376IUTeZAFlHZTKOyJRALJIuPP4W
Mzu/0oeY+qwgDzhTOECiAIgu1CmQ9wss290aAWGlpudfRZzhZdypaAy+VkbC97g1rQSXE6ADquE4w45w
3/hqpOBYs3+NMjWMMbXAghwLiLjawPkbrscUoxiGF1NEXlnjxOjLhuLgi/2vFcV/TriakfdtKKthdla6
B2b0JGhA9rIDof0+4rxfGOIY6CqhjqYxG5z5bZTGANzbQ3JAtYakK44n4MeyV9dhDWkG7pKfb1LfLy+O
yV+nHBOJcP4nLiOJOiYZIPDbEx2Ygkgm/TS3S69Bk29iohKP4i/3ezw9s2XQADoQAAUzxg4G4I13HRa9
VTMfK91iDckEGy7D9PcCo66jqqivg8ZokEcYfewAFyQet7gey1dtIyqezOWLi4c1+10DybWdb5R4xRup
OIa6kLnRNjmf4bDYEMJJba+tiLEHqtvhikjk4pw9jryAy5iHHNoATqPZHXjYU+dGvR0VXWPy00EkpJ2Y
0n+Wy7DAeCXmZlTjFg1pB8AEEu/9raW8hv5LuMrWmzWhoG1hZRUu2y+caQRs4WGllMh7hRnMmLg7F5D3
CznCNJQB5wsEF2oQo2be6AxkPcKBpabnX0TELuVAYzhTOECiAItJNwRqpkPcIhsPREgEqJyiABm3ujS3
8yFAMdypaJvMmIBKYNh6Iko8x9UA1aWLVTqPC6mqjYXvhie9rQCcxAJA09E9HH1QHzrLHiuMYq4sbPLN
PJmc2KFwsSewGg+l7fwfh1VhXDVHRVoaJog64abgXcSAfMDQ+avVg7H0U7ISPM+MP05xbG+IqrFKaspM
sxbljkLmkANAtcAjouUm/T3iujnD46GRxadHwTtJ9Qbgj4XuaijZJyn6ft4hioaiDiFlQAxzfAdO4OeQ
QbgkG5AsN+66tMbyokAtnMmIH7e6BAOSVE5AJRs290aW/mQDELuVLRN5kAKicogBGw9ESUeY+qwgHKKK
IBb+ZCjk3CBAE3mTEpvMmoCJR5j6pqSUBEcfVAjZ1QBoTsfREsHZAKUUUQDG8qJC3YIkAD9vdAjfsECA
ickpyAiW/mTEEm4QAIm8yFZbzIBqiiiAUeY+qwoVEB//2Q==
</value>
</data>
</root>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
namespace Siger.VoiceTpm
{
public class HttpClientHelper
{
private static readonly HttpClient HttpClient;
static HttpClientHelper()
{
var handler = new HttpClientHandler
{
AutomaticDecompression = DecompressionMethods.None,
};
HttpClient = new HttpClient(handler) { Timeout = TimeSpan.FromSeconds(60) };
}
public static string HttpPost(string url, string postData, string contentType = "application/json", Dictionary<string, string> headers = null)
{
if (headers != null)
{
foreach (var header in headers)
{
if (!HttpClient.DefaultRequestHeaders.TryGetValues(header.Key, out IEnumerable<string> values))
{
HttpClient.DefaultRequestHeaders.Add(header.Key, header.Value);
}
}
}
using (HttpContent httpContent = new StringContent(postData, Encoding.UTF8))
{
httpContent.Headers.ContentType = new MediaTypeHeaderValue(contentType);
try
{
var postResult = HttpClient.PostAsync(url, httpContent);
postResult.Wait();
var response = postResult.Result;
//response.EnsureSuccessStatusCode();
var resultContent = response.Content.ReadAsStringAsync();
resultContent.Wait();
return resultContent.Result;
}
catch (Exception e)
{
throw new Exception($"HttpPost {url} error: " + e.Message);
}
}
}
public static string HttpGet(string url, string contentType = "application/json", Dictionary<string, string> headers = null)
{
HttpClient.DefaultRequestHeaders.Clear();
HttpClient.DefaultRequestHeaders.Add("ContentType", contentType);
if (headers != null)
{
foreach (var header in headers)
{
HttpClient.DefaultRequestHeaders.Add(header.Key, header.Value);
}
}
try
{
var response = HttpClient.GetAsync(url);
response.Wait();
var result = response.Result;
//result.EnsureSuccessStatusCode();
var resultContent = result.Content.ReadAsStringAsync();
resultContent.Wait();
return resultContent.Result;
}
catch (Exception e)
{
throw new Exception($"HttpGet {url} error: " + e.Message);
}
}
public static string HttpPut(string url, string putData, string contentType = "application/json", Dictionary<string, string> headers = null)
{
if (headers != null)
{
foreach (var header in headers)
{
if (!HttpClient.DefaultRequestHeaders.TryGetValues(header.Key, out IEnumerable<string> values))
{
HttpClient.DefaultRequestHeaders.Add(header.Key, header.Value);
}
}
}
using (HttpContent httpContent = new StringContent(putData, Encoding.UTF8))
{
httpContent.Headers.ContentType = new MediaTypeHeaderValue(contentType);
try
{
var putResult = HttpClient.PutAsync(url, httpContent);
putResult.Wait();
var response = putResult.Result;
//response.EnsureSuccessStatusCode();
var resultContent = response.Content.ReadAsStringAsync();
resultContent.Wait();
return resultContent.Result;
}
catch (Exception e)
{
throw new Exception($"HttpPut {url} error: " + e.Message);
}
}
}
}
public class ResponseObj
{
public int ret { get; set; }
public int msg { get; set; }
public Dictionary<string, string> data { get; set; }
}
}
namespace Siger.VoiceTpm
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
using (System.Threading.Mutex m = new System.Threading.Mutex(true, Application.ProductName, out bool createNew))
{
if (createNew)
{
log4net.Config.XmlConfigurator.Configure();
var cfg = loadCfg();
Application.Run(new Form1(cfg));
}
else
{
MessageBox.Show("Ѿ!");
}
}
}
static BaseConfig loadCfg()
{
var entity = new BaseConfig
{
CompanyDesc = ConfigureHelper.GetAppSetting<string>("CompanyDesc"),
Url = ConfigureHelper.GetAppSetting<string>("Url"),
ProjectId = ConfigureHelper.GetAppSetting<int>("ProjectId"),
CompanyId = ConfigureHelper.GetAppSetting<int>("CompanyId"),
SpeekRate=ConfigureHelper.GetAppSetting<int>("SpeekRate"),
Repeat= ConfigureHelper.GetAppSetting<int>("Repeat")
};
return entity;
}
}
}
\ No newline at end of file
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Siger.VoiceTpm.Properties {
using System;
/// <summary>
/// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// 返回此类使用的缓存的 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Siger.VoiceTpm.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 重写当前线程的 CurrentUICulture 属性,对
/// 使用此强类型资源类的所有资源查找执行重写。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<ApplicationIcon>bitbug_favicon.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Content Include="bitbug_favicon.ico" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="log4net" Version="2.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="6.0.8" />
</ItemGroup>
<ItemGroup>
<Reference Include="DotNetSpeech">
<HintPath>..\Siger.Voice\Dll\DotNetSpeech.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Compile Update="Form1.cs">
<SubType>Form</SubType>
</Compile>
</ItemGroup>
</Project>
using DotNetSpeech;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Siger.VoiceTpm
{
public class Voice
{
public static void Readcontext(string text, int rate = -2)
{
SpVoice sp = new SpVoice();
sp.Rate = rate; //速度设置
SpeechVoiceSpeakFlags sFlags = SpeechVoiceSpeakFlags.SVSFDefault;//.SVSFlagsAsync;
sp.Speak(text, sFlags);
}
}
}
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Siger.VoiceTpm/1.0.0": {
"dependencies": {
"Newtonsoft.Json": "6.0.8",
"log4net": "2.0.0",
"DotNetSpeech": "5.0.0.0"
},
"runtime": {
"Siger.VoiceTpm.dll": {}
}
},
"log4net/2.0.0": {
"runtime": {
"lib/net40-full/log4net.dll": {
"assemblyVersion": "1.2.11.0",
"fileVersion": "1.2.11.0"
}
}
},
"Newtonsoft.Json/6.0.8": {
"runtime": {
"lib/net45/Newtonsoft.Json.dll": {
"assemblyVersion": "6.0.0.0",
"fileVersion": "6.0.8.18111"
}
}
},
"DotNetSpeech/5.0.0.0": {
"runtime": {
"DotNetSpeech.dll": {
"assemblyVersion": "5.0.0.0",
"fileVersion": "5.0.0.0"
}
}
}
}
},
"libraries": {
"Siger.VoiceTpm/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"log4net/2.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-KPajjkU1rbF6uY2rnakbh36LB9z9FVcYlciyOi6C5SJ3AMNywxjCGxBTN/Hl5nQEinRLuWvHWPF8W7YHh9sONw==",
"path": "log4net/2.0.0",
"hashPath": "log4net.2.0.0.nupkg.sha512"
},
"Newtonsoft.Json/6.0.8": {
"type": "package",
"serviceable": true,
"sha512": "sha512-7ut47NDedTW19EbL0JpFDYUP62fcuz27hJrehCDNajdCS5NtqL+E39+7Um3OkNc2wl2ym7K8Ln5eNuLus6mVGQ==",
"path": "newtonsoft.json/6.0.8",
"hashPath": "newtonsoft.json.6.0.8.nupkg.sha512"
},
"DotNetSpeech/5.0.0.0": {
"type": "reference",
"serviceable": false,
"sha512": ""
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<appSettings>
<add key="CompanyId" value="2095"/>
<add key="ProjectId" value="1750"/>
<add key="CompanyDesc" value="芜湖SKF"/>
<add key="Url" value="https://cloud.siger-data.com/apis"/>
<!--语速-->
<add key="SpeekRate" value="1"/>
<!--重复次数-->
<add key="Repeat" value="1"/>
</appSettings>
<log4net>
<root>
<!--<level value="ERROR"/>-->
<appender-ref ref="RollingFileAppender"/>
</root>
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
<!--日志文件名开头-->
<file value="logs/Log.log"/>
<!--多线程时采用最小锁定-->
<lockingModel type="log4net.Appender.FileAppender+MinimalLock"/>
<!--日期的格式,每天换一个文件记录,如不设置则永远只记录一天的日志,需设置-->
<datePattern value="yyyy.MM.dd"/>
<!--是否追加到文件,默认为true,通常无需设置-->
<appendToFile value="true"/>
<RollingStyle value="Size"/>
<MaxSizeRollBackups value="10"/>
<maximumFileSize value="2MB"/>
<!--日志格式-->
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%t]%-5p %c - %m%n"/>
</layout>
</appender>
</log4net>
</configuration>
\ No newline at end of file
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
]
}
}
\ No newline at end of file
2023-06-29 19:31:14,746 [11]ERROR Form1 - Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
2023-06-29 19:39:27,707 [11]ERROR Form1 - Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
2023-06-29 19:43:15,121 [11]ERROR Form1 - Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
2023-06-29 19:43:57,737 [11]ERROR Form1 - Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
2023-06-29 19:44:45,986 [11]ERROR Form1 - Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
2023-06-29 19:46:51,695 [11]INFO Form1 - key 127744
2023-06-29 19:46:51,707 [11]INFO Form1 - key 【CH14-CH14-20】【全自动压铆机】有异常【电-电机类故障】发生,请速往现场支援
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Siger.VoiceTpm/1.0.0": {
"dependencies": {
"Newtonsoft.Json": "6.0.8",
"log4net": "2.0.0",
"DotNetSpeech": "5.0.0.0"
},
"runtime": {
"Siger.VoiceTpm.dll": {}
}
},
"log4net/2.0.0": {
"runtime": {
"lib/net40-full/log4net.dll": {
"assemblyVersion": "1.2.11.0",
"fileVersion": "1.2.11.0"
}
}
},
"Newtonsoft.Json/6.0.8": {
"runtime": {
"lib/net45/Newtonsoft.Json.dll": {
"assemblyVersion": "6.0.0.0",
"fileVersion": "6.0.8.18111"
}
}
},
"DotNetSpeech/5.0.0.0": {
"runtime": {
"DotNetSpeech.dll": {
"assemblyVersion": "5.0.0.0",
"fileVersion": "5.0.0.0"
}
}
}
}
},
"libraries": {
"Siger.VoiceTpm/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"log4net/2.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-KPajjkU1rbF6uY2rnakbh36LB9z9FVcYlciyOi6C5SJ3AMNywxjCGxBTN/Hl5nQEinRLuWvHWPF8W7YHh9sONw==",
"path": "log4net/2.0.0",
"hashPath": "log4net.2.0.0.nupkg.sha512"
},
"Newtonsoft.Json/6.0.8": {
"type": "package",
"serviceable": true,
"sha512": "sha512-7ut47NDedTW19EbL0JpFDYUP62fcuz27hJrehCDNajdCS5NtqL+E39+7Um3OkNc2wl2ym7K8Ln5eNuLus6mVGQ==",
"path": "newtonsoft.json/6.0.8",
"hashPath": "newtonsoft.json.6.0.8.nupkg.sha512"
},
"DotNetSpeech/5.0.0.0": {
"type": "reference",
"serviceable": false,
"sha512": ""
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<appSettings>
<add key="CompanyId" value="1"/>
<add key="ProjectId" value="1"/>
<add key="CompanyDesc" value="xxx 公司"/>
<add key="Url" value="http://192.1681.1.1"/>
<add key="SpeekRate" value="1"/>
</appSettings>
<log4net>
<root>
<!--<level value="ERROR"/>-->
<appender-ref ref="RollingFileAppender"/>
</root>
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
<!--日志文件名开头-->
<file value="logs/Log.log"/>
<!--多线程时采用最小锁定-->
<lockingModel type="log4net.Appender.FileAppender+MinimalLock"/>
<!--日期的格式,每天换一个文件记录,如不设置则永远只记录一天的日志,需设置-->
<datePattern value="yyyy.MM.dd"/>
<!--是否追加到文件,默认为true,通常无需设置-->
<appendToFile value="true"/>
<RollingStyle value="Size"/>
<MaxSizeRollBackups value="10"/>
<maximumFileSize value="2MB"/>
<!--日志格式-->
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%t]%-5p %c - %m%n"/>
</layout>
</appender>
</log4net>
</configuration>
\ No newline at end of file
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
]
}
}
\ No newline at end of file
2022-12-27 14:32:44,182 [1]ERROR Form1 - HttpGet http://192.1681.1.1/tpm/Andon/QueryAndonMessage?companyId=1&projectId=1 error: One or more errors occurred. (不知道这样的主机。 (192.1681.1.1:80))
2022-12-27 14:33:30,368 [1]ERROR Form1 - HttpGet http://192.1681.1.1/tpm/Andon/QueryAndonMessage?companyId=1&projectId=1 error: One or more errors occurred. (不知道这样的主机。 (192.1681.1.1:80))
2022-12-27 14:34:28,880 [12]ERROR Form1 - HttpGet http://192.1681.1.1/tpm/Andon/QueryAndonMessage?companyId=1&projectId=1 error: One or more errors occurred. (不知道这样的主机。 (192.1681.1.1:80))
2022-12-27 14:39:20,685 [11]ERROR Form1 - Error reading string. Unexpected token: StartObject. Path 'data', line 1, position 25.
2022-12-27 14:40:26,701 [11]ERROR Form1 - Error reading string. Unexpected token: StartObject. Path 'data', line 1, position 25.
2022-12-27 14:49:37,556 [5]ERROR Form1 - HttpGet http://192.1681.1.1/tpm/Andon/QueryAndonMessage?companyId=1&projectId=1 error: One or more errors occurred. (不知道这样的主机。 (192.1681.1.1:80))
2023-06-29 19:18:57,590 [5]ERROR Form1 - Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
2023-06-29 19:19:57,600 [5]ERROR Form1 - Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
2023-06-29 19:20:57,603 [5]ERROR Form1 - Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
{
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Siger.VoiceTpm/1.0.0": {
"dependencies": {
"Newtonsoft.Json": "6.0.8",
"log4net": "2.0.0",
"DotNetSpeech": "5.0.0.0"
},
"runtime": {
"Siger.VoiceTpm.dll": {}
}
},
"log4net/2.0.0": {
"runtime": {
"lib/net40-full/log4net.dll": {
"assemblyVersion": "1.2.11.0",
"fileVersion": "1.2.11.0"
}
}
},
"Newtonsoft.Json/6.0.8": {
"runtime": {
"lib/net45/Newtonsoft.Json.dll": {
"assemblyVersion": "6.0.0.0",
"fileVersion": "6.0.8.18111"
}
}
},
"DotNetSpeech/5.0.0.0": {
"runtime": {
"DotNetSpeech.dll": {
"assemblyVersion": "5.0.0.0",
"fileVersion": "5.0.0.0"
}
}
}
}
},
"libraries": {
"Siger.VoiceTpm/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"log4net/2.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-KPajjkU1rbF6uY2rnakbh36LB9z9FVcYlciyOi6C5SJ3AMNywxjCGxBTN/Hl5nQEinRLuWvHWPF8W7YHh9sONw==",
"path": "log4net/2.0.0",
"hashPath": "log4net.2.0.0.nupkg.sha512"
},
"Newtonsoft.Json/6.0.8": {
"type": "package",
"serviceable": true,
"sha512": "sha512-7ut47NDedTW19EbL0JpFDYUP62fcuz27hJrehCDNajdCS5NtqL+E39+7Um3OkNc2wl2ym7K8Ln5eNuLus6mVGQ==",
"path": "newtonsoft.json/6.0.8",
"hashPath": "newtonsoft.json.6.0.8.nupkg.sha512"
},
"DotNetSpeech/5.0.0.0": {
"type": "reference",
"serviceable": false,
"sha512": ""
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<appSettings>
<add key="CompanyId" value="2095"/>
<add key="ProjectId" value="1750"/>
<add key="CompanyDesc" value="芜湖SKF"/>
<add key="Url" value="https://cloud.siger-data.com/apis"/>
<!--语速-->
<add key="SpeekRate" value="1"/>
<!--重复次数-->
<add key="Repeat" value="1"/>
</appSettings>
<log4net>
<root>
<!--<level value="ERROR"/>-->
<appender-ref ref="RollingFileAppender"/>
</root>
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
<!--日志文件名开头-->
<file value="logs/Log.log"/>
<!--多线程时采用最小锁定-->
<lockingModel type="log4net.Appender.FileAppender+MinimalLock"/>
<!--日期的格式,每天换一个文件记录,如不设置则永远只记录一天的日志,需设置-->
<datePattern value="yyyy.MM.dd"/>
<!--是否追加到文件,默认为true,通常无需设置-->
<appendToFile value="true"/>
<RollingStyle value="Size"/>
<MaxSizeRollBackups value="10"/>
<maximumFileSize value="2MB"/>
<!--日志格式-->
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%t]%-5p %c - %m%n"/>
</layout>
</appender>
</log4net>
</configuration>
\ No newline at end of file
{
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
],
"configProperties": {
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
}
}
}
\ No newline at end of file
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Siger.VoiceTpm")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Siger.VoiceTpm")]
[assembly: System.Reflection.AssemblyTitleAttribute("Siger.VoiceTpm")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]
// 由 MSBuild WriteCodeFragment 类生成。
is_global = true
build_property.ApplicationManifest =
build_property.StartupObject =
build_property.ApplicationDefaultFont =
build_property.ApplicationHighDpiMode =
build_property.ApplicationUseCompatibleTextRendering =
build_property.ApplicationVisualStyles =
build_property.TargetFramework = net6.0-windows
build_property.TargetPlatformMinVersion = 7.0
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Siger.VoiceTpm
build_property.ProjectDir = D:\Code\20220327\Voice\Siger.VoiceTpm\
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.Drawing;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
global using global::System.Windows.Forms;
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Debug\net6.0-windows\Siger.VoiceTpm.exe
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Debug\net6.0-windows\Siger.VoiceTpm.dll.config
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Debug\net6.0-windows\Siger.VoiceTpm.deps.json
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Debug\net6.0-windows\Siger.VoiceTpm.runtimeconfig.json
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Debug\net6.0-windows\Siger.VoiceTpm.dll
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Debug\net6.0-windows\Siger.VoiceTpm.pdb
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Debug\net6.0-windows\log4net.dll
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Debug\net6.0-windows\Newtonsoft.Json.dll
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Debug\net6.0-windows\DotNetSpeech.dll
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Debug\net6.0-windows\Siger.VoiceTpm.csproj.AssemblyReference.cache
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Debug\net6.0-windows\Siger.VoiceTpm.Form1.resources
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Debug\net6.0-windows\Siger.VoiceTpm.Properties.Resources.resources
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Debug\net6.0-windows\Siger.VoiceTpm.csproj.GenerateResource.cache
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Debug\net6.0-windows\Siger.VoiceTpm.GeneratedMSBuildEditorConfig.editorconfig
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Debug\net6.0-windows\Siger.VoiceTpm.AssemblyInfoInputs.cache
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Debug\net6.0-windows\Siger.VoiceTpm.AssemblyInfo.cs
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Debug\net6.0-windows\Siger.VoiceTpm.csproj.CoreCompileInputs.cache
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Debug\net6.0-windows\Siger.VoiceTpm.csproj.CopyComplete
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Debug\net6.0-windows\Siger.VoiceTpm.dll
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Debug\net6.0-windows\refint\Siger.VoiceTpm.dll
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Debug\net6.0-windows\Siger.VoiceTpm.pdb
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Debug\net6.0-windows\Siger.VoiceTpm.genruntimeconfig.cache
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Debug\net6.0-windows\ref\Siger.VoiceTpm.dll
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"log4net/2.0.0": {
"runtime": {
"lib/net40-full/log4net.dll": {
"assemblyVersion": "1.2.11.0",
"fileVersion": "1.2.11.0"
}
}
},
"Newtonsoft.Json/6.0.8": {
"runtime": {
"lib/net45/Newtonsoft.Json.dll": {
"assemblyVersion": "6.0.0.0",
"fileVersion": "6.0.8.18111"
}
}
}
}
},
"libraries": {
"log4net/2.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-KPajjkU1rbF6uY2rnakbh36LB9z9FVcYlciyOi6C5SJ3AMNywxjCGxBTN/Hl5nQEinRLuWvHWPF8W7YHh9sONw==",
"path": "log4net/2.0.0",
"hashPath": "log4net.2.0.0.nupkg.sha512"
},
"Newtonsoft.Json/6.0.8": {
"type": "package",
"serviceable": true,
"sha512": "sha512-7ut47NDedTW19EbL0JpFDYUP62fcuz27hJrehCDNajdCS5NtqL+E39+7Um3OkNc2wl2ym7K8Ln5eNuLus6mVGQ==",
"path": "newtonsoft.json/6.0.8",
"hashPath": "newtonsoft.json.6.0.8.nupkg.sha512"
}
}
}
\ No newline at end of file
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
],
"additionalProbingPaths": [
"C:\\Users\\jws\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\jws\\.nuget\\packages",
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configProperties": {
"Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true
}
}
}
\ No newline at end of file
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Siger.VoiceTpm")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Siger.VoiceTpm")]
[assembly: System.Reflection.AssemblyTitleAttribute("Siger.VoiceTpm")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]
// 由 MSBuild WriteCodeFragment 类生成。
is_global = true
build_property.ApplicationManifest =
build_property.StartupObject =
build_property.ApplicationDefaultFont =
build_property.ApplicationHighDpiMode =
build_property.ApplicationUseCompatibleTextRendering =
build_property.ApplicationVisualStyles =
build_property.TargetFramework = net6.0-windows
build_property.TargetPlatformMinVersion = 7.0
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Siger.VoiceTpm
build_property.ProjectDir = D:\Code\20220327\Voice\Siger.VoiceTpm\
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.Drawing;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
global using global::System.Windows.Forms;
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Release\net6.0-windows\Siger.VoiceTpm.exe
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Release\net6.0-windows\Siger.VoiceTpm.dll.config
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Release\net6.0-windows\Siger.VoiceTpm.deps.json
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Release\net6.0-windows\Siger.VoiceTpm.runtimeconfig.json
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Release\net6.0-windows\Siger.VoiceTpm.dll
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Release\net6.0-windows\Siger.VoiceTpm.pdb
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Release\net6.0-windows\log4net.dll
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Release\net6.0-windows\Newtonsoft.Json.dll
D:\Code\20220327\Voice\Siger.VoiceTpm\bin\Release\net6.0-windows\DotNetSpeech.dll
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Release\net6.0-windows\Siger.VoiceTpm.csproj.AssemblyReference.cache
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Release\net6.0-windows\Siger.VoiceTpm.Form1.resources
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Release\net6.0-windows\Siger.VoiceTpm.Properties.Resources.resources
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Release\net6.0-windows\Siger.VoiceTpm.csproj.GenerateResource.cache
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Release\net6.0-windows\Siger.VoiceTpm.GeneratedMSBuildEditorConfig.editorconfig
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Release\net6.0-windows\Siger.VoiceTpm.AssemblyInfoInputs.cache
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Release\net6.0-windows\Siger.VoiceTpm.AssemblyInfo.cs
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Release\net6.0-windows\Siger.VoiceTpm.csproj.CoreCompileInputs.cache
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Release\net6.0-windows\Siger.VoiceTpm.csproj.CopyComplete
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Release\net6.0-windows\Siger.VoiceTpm.dll
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Release\net6.0-windows\refint\Siger.VoiceTpm.dll
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Release\net6.0-windows\Siger.VoiceTpm.pdb
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Release\net6.0-windows\Siger.VoiceTpm.genruntimeconfig.cache
D:\Code\20220327\Voice\Siger.VoiceTpm\obj\Release\net6.0-windows\ref\Siger.VoiceTpm.dll
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"log4net/2.0.0": {
"runtime": {
"lib/net40-full/log4net.dll": {
"assemblyVersion": "1.2.11.0",
"fileVersion": "1.2.11.0"
}
}
},
"Newtonsoft.Json/6.0.8": {
"runtime": {
"lib/net45/Newtonsoft.Json.dll": {
"assemblyVersion": "6.0.0.0",
"fileVersion": "6.0.8.18111"
}
}
}
}
},
"libraries": {
"log4net/2.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-KPajjkU1rbF6uY2rnakbh36LB9z9FVcYlciyOi6C5SJ3AMNywxjCGxBTN/Hl5nQEinRLuWvHWPF8W7YHh9sONw==",
"path": "log4net/2.0.0",
"hashPath": "log4net.2.0.0.nupkg.sha512"
},
"Newtonsoft.Json/6.0.8": {
"type": "package",
"serviceable": true,
"sha512": "sha512-7ut47NDedTW19EbL0JpFDYUP62fcuz27hJrehCDNajdCS5NtqL+E39+7Um3OkNc2wl2ym7K8Ln5eNuLus6mVGQ==",
"path": "newtonsoft.json/6.0.8",
"hashPath": "newtonsoft.json.6.0.8.nupkg.sha512"
}
}
}
\ No newline at end of file
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
],
"additionalProbingPaths": [
"C:\\Users\\jws\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\jws\\.nuget\\packages",
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configProperties": {
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
"Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true
}
}
}
\ No newline at end of file
{
"format": 1,
"restore": {
"D:\\Code\\20220327\\Voice\\Siger.VoiceTpm\\Siger.VoiceTpm.csproj": {}
},
"projects": {
"D:\\Code\\20220327\\Voice\\Siger.VoiceTpm\\Siger.VoiceTpm.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Code\\20220327\\Voice\\Siger.VoiceTpm\\Siger.VoiceTpm.csproj",
"projectName": "Siger.VoiceTpm",
"projectPath": "D:\\Code\\20220327\\Voice\\Siger.VoiceTpm\\Siger.VoiceTpm.csproj",
"packagesPath": "C:\\Users\\jws\\.nuget\\packages\\",
"outputPath": "D:\\Code\\20220327\\Voice\\Siger.VoiceTpm\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\jws\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0-windows7.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://61.177.28.246:8081/repository/nuget-hosted/": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"dependencies": {
"Newtonsoft.Json": {
"target": "Package",
"version": "[6.0.8, )"
},
"log4net": {
"target": "Package",
"version": "[2.0.0, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
},
"Microsoft.WindowsDesktop.App.WindowsForms": {
"privateAssets": "none"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.201\\RuntimeIdentifierGraph.json"
}
}
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\jws\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.1.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\jws\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgNewtonsoft_Json Condition=" '$(PkgNewtonsoft_Json)' == '' ">C:\Users\jws\.nuget\packages\newtonsoft.json\6.0.8</PkgNewtonsoft_Json>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
\ No newline at end of file
{
"version": 3,
"targets": {
"net6.0-windows7.0": {
"log4net/2.0.0": {
"type": "package",
"compile": {
"lib/net40-full/log4net.dll": {}
},
"runtime": {
"lib/net40-full/log4net.dll": {}
}
},
"Newtonsoft.Json/6.0.8": {
"type": "package",
"compile": {
"lib/net45/Newtonsoft.Json.dll": {}
},
"runtime": {
"lib/net45/Newtonsoft.Json.dll": {}
}
}
}
},
"libraries": {
"log4net/2.0.0": {
"sha512": "KPajjkU1rbF6uY2rnakbh36LB9z9FVcYlciyOi6C5SJ3AMNywxjCGxBTN/Hl5nQEinRLuWvHWPF8W7YHh9sONw==",
"type": "package",
"path": "log4net/2.0.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net10-full/log4net.dll",
"lib/net10-full/log4net.xml",
"lib/net11-full/log4net.dll",
"lib/net11-full/log4net.xml",
"lib/net20-cf/log4net.dll",
"lib/net20-cf/log4net.xml",
"lib/net20-full/log4net.dll",
"lib/net20-full/log4net.xml",
"lib/net35-client/log4net.dll",
"lib/net35-client/log4net.xml",
"lib/net35-full/log4net.dll",
"lib/net35-full/log4net.xml",
"lib/net40-client/log4net.dll",
"lib/net40-client/log4net.xml",
"lib/net40-full/log4net.dll",
"lib/net40-full/log4net.xml",
"log4net.2.0.0.nupkg.sha512",
"log4net.nuspec"
]
},
"Newtonsoft.Json/6.0.8": {
"sha512": "7ut47NDedTW19EbL0JpFDYUP62fcuz27hJrehCDNajdCS5NtqL+E39+7Um3OkNc2wl2ym7K8Ln5eNuLus6mVGQ==",
"type": "package",
"path": "newtonsoft.json/6.0.8",
"hasTools": true,
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net20/Newtonsoft.Json.dll",
"lib/net20/Newtonsoft.Json.xml",
"lib/net35/Newtonsoft.Json.dll",
"lib/net35/Newtonsoft.Json.xml",
"lib/net40/Newtonsoft.Json.dll",
"lib/net40/Newtonsoft.Json.xml",
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
"lib/netcore45/Newtonsoft.Json.dll",
"lib/netcore45/Newtonsoft.Json.xml",
"lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.dll",
"lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.xml",
"lib/portable-net45+wp80+win8+wpa81+aspnetcore50/Newtonsoft.Json.dll",
"lib/portable-net45+wp80+win8+wpa81+aspnetcore50/Newtonsoft.Json.xml",
"newtonsoft.json.6.0.8.nupkg.sha512",
"newtonsoft.json.nuspec",
"tools/install.ps1"
]
}
},
"projectFileDependencyGroups": {
"net6.0-windows7.0": [
"Newtonsoft.Json >= 6.0.8",
"log4net >= 2.0.0"
]
},
"packageFolders": {
"C:\\Users\\jws\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Code\\20220327\\Voice\\Siger.VoiceTpm\\Siger.VoiceTpm.csproj",
"projectName": "Siger.VoiceTpm",
"projectPath": "D:\\Code\\20220327\\Voice\\Siger.VoiceTpm\\Siger.VoiceTpm.csproj",
"packagesPath": "C:\\Users\\jws\\.nuget\\packages\\",
"outputPath": "D:\\Code\\20220327\\Voice\\Siger.VoiceTpm\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\jws\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0-windows7.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://61.177.28.246:8081/repository/nuget-hosted/": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"dependencies": {
"Newtonsoft.Json": {
"target": "Package",
"version": "[6.0.8, )"
},
"log4net": {
"target": "Package",
"version": "[2.0.0, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
},
"Microsoft.WindowsDesktop.App.WindowsForms": {
"privateAssets": "none"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.201\\RuntimeIdentifierGraph.json"
}
}
},
"logs": [
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "已使用“.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8”而不是项目目标框架“net6.0-windows7.0”还原包“log4net 2.0.0”。此包可能与项目不完全兼容。",
"libraryId": "log4net",
"targetGraphs": [
"net6.0-windows7.0"
]
},
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "已使用“.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8”而不是项目目标框架“net6.0-windows7.0”还原包“Newtonsoft.Json 6.0.8”。此包可能与项目不完全兼容。",
"libraryId": "Newtonsoft.Json",
"targetGraphs": [
"net6.0-windows7.0"
]
}
]
}
\ No newline at end of file
{
"version": 2,
"dgSpecHash": "NT6L51zFcRBPLcaZLdQqfPE6oTlcrWsa5jUw+0+GR6/sSfxQc7fVOEh9VvH0i42w8ZSP9GJWEUhWsK9Uii+ZGw==",
"success": true,
"projectFilePath": "D:\\Code\\20220327\\Voice\\Siger.VoiceTpm\\Siger.VoiceTpm.csproj",
"expectedPackageFiles": [
"C:\\Users\\jws\\.nuget\\packages\\log4net\\2.0.0\\log4net.2.0.0.nupkg.sha512",
"C:\\Users\\jws\\.nuget\\packages\\newtonsoft.json\\6.0.8\\newtonsoft.json.6.0.8.nupkg.sha512"
],
"logs": [
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "已使用“.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8”而不是项目目标框架“net6.0-windows7.0”还原包“log4net 2.0.0”。此包可能与项目不完全兼容。",
"libraryId": "log4net",
"targetGraphs": [
"net6.0-windows7.0"
]
},
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "已使用“.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8”而不是项目目标框架“net6.0-windows7.0”还原包“Newtonsoft.Json 6.0.8”。此包可能与项目不完全兼容。",
"libraryId": "Newtonsoft.Json",
"targetGraphs": [
"net6.0-windows7.0"
]
}
]
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment