From afda40ef498cca59e58b2b6869deae90f3c13de5 Mon Sep 17 00:00:00 2001 From: wzp <2880584989@qq.com> Date: 星期五, 30 七月 2021 13:49:58 +0800 Subject: [PATCH] 增加HTTP测试工具 --- CMPPHOST/CMPPHOST/obj/Debug/CMPPHOST.pdb | 0 ThreadTestSMGW/ThreadTestSMGW/ThreadTestSMGW.csproj | 122 ++++ ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.vshost.exe | 0 Source/BusinessFactory_Source/bin/Debug/BusinessFactory.pdb | 0 Source/BusinessFactory_Source/obj/Debug/BusinessFactory.csproj.AssemblyReference.cache | 0 ThreadTestSMGW/.vs/ThreadTestSMGW/v15/Server/sqlite3/storage.ide | 0 CMPPHOST/CMPPHOST/bin/Debug/CMPP2.dll | 0 ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csproj.FileListAbsolute.txt | 39 + Source/BusinessFactory_Source/bin/Debug/BusinessFactory.dll | 0 ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.vshost.exe.manifest | 11 ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.application | 21 ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.exe | 0 CMPPHOST/CMPPHOST/bin/Debug/BusinessFactory.dll | 0 ThreadTestSMGW/ThreadTestSMGW/ThreadTestSMGW.csproj.user | 16 CMPPHOST/CMPPHOST/bin/Debug/CMPPHOST.pdb | 0 ThreadTestSMGW/ThreadTestSMGW/Properties/AssemblyInfo.cs | 36 + ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.vshost.application | 21 ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.exe.config | 10 ThreadTestSMGW/ThreadTestSMGW/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs | 0 ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.exe.manifest | 89 +++ ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.pdb | 0 ThreadTestSMGW/ThreadTestSMGW/TornadoSMSHandler.cs | 48 + ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.vshost.exe.config | 36 + ThreadTestSMGW/ThreadTestSMGW/bin/Debug/app.publish/ThreadTestSMGW.exe | 0 ThreadTestSMGW/ThreadTestSMGW/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs | 0 ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.pdb | 0 ThreadTestSMGW/ThreadTestSMGW.sln | 20 CMPPHOST/CMPPHOST/Program.cs | 2 ThreadTestSMGW/ThreadTestSMGW/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs | 0 ThreadTestSMGW/ThreadTestSMGW/SMSHandler.cs | 250 +++++++++ CMPPHOST/CMPPHOST/bin/Debug/CMPPHOST.exe | 0 ThreadTestSMGW/ThreadTestSMGW/App.config | 36 + ThreadTestSMGW/.vs/ThreadTestSMGW/v15/Server/sqlite3/storage.ide-wal | 0 ThreadTestSMGW/ThreadTestSMGW/Program.cs | 316 ++++++++++++ ThreadTestSMGW/ThreadTestSMGW/bin/Debug/Microsoft.Practices.ObjectBuilder.dll | 0 ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.exe | 0 ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.vshost.exe.manifest | 109 ++++ ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csproj.AssemblyReference.cache | 0 CMPPHOST/CMPPHOST/bin/Debug/DBFactory.pdb | 0 ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.exe.config | 36 + ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.exe | 0 CMPPHOST/CMPPHOST/obj/Debug/CMPPHOST.csproj.AssemblyReference.cache | 0 ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.vshost.exe | 0 ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.application | 21 ThreadTestSMGW/ThreadTestSMGW/ListToDt.cs | 58 ++ Source/DBFactory_Source/bin/Debug/DBFactory.dll | 0 ThreadTestSMGW/ThreadTestSMGW/obj/Debug/.NETFramework,Version=v4.5.AssemblyAttributes.cs | 4 ThreadTestSMGW/ThreadTestSMGW/StrToHex.cs | 24 Source/DBFactory_Source/bin/Debug/DBFactory.pdb | 0 ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.vshost.exe.config | 10 ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csprojResolveAssemblyReference.cache | 0 CMPPHOST/CMPPHOST/bin/Debug/BusinessFactory.pdb | 0 ThreadTestSMGW/.vs/ThreadTestSMGW/v15/Server/sqlite3/storage.ide-shm | 0 ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.exe.manifest | 89 +++ CMPPHOST/CMPPHOST/obj/Debug/CMPPHOST.exe | 0 Source/BusinessFactory_Source/obj/Debug/BusinessFactory.dll | 0 Source/CMPP2_Source/obj/Debug/CMPP2.dll | 0 ThreadTestSMGW/.vs/ThreadTestSMGW/v15/Server/sqlite3/db.lock | 0 CMPPHOST/CMPPHOST/bin/Debug/CMPP2.pdb | 0 Source/.vs/APPCMPP2/v16/.suo | 0 Source/DBFactory_Source/obj/Debug/DBFactory.csproj.FileListAbsolute.txt | 1 Source/CMPP2_Source/bin/Debug/CMPP2.pdb | 0 Source/DBFactory_Source/obj/Debug/DBFactory.csproj.AssemblyReference.cache | 0 Source/DBFactory_Source/obj/Debug/DBFactory.pdb | 0 ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csproj.CoreCompileInputs.cache | 1 Source/BusinessFactory_Source/bin/Debug/DBFactory.pdb | 0 Source/BusinessFactory_Source/bin/Debug/DBFactory.dll | 0 ThreadTestSMGW/ThreadTestSMGW/DataSql.cs | 75 ++ ThreadTestSMGW/ThreadTestSMGW/SMSModel.cs | 17 Source/BusinessFactory_Source/obj/Debug/BusinessFactory.pdb | 0 Source/CMPP2_Source/obj/Debug/CMPP2.pdb | 0 ThreadTestSMGW/ThreadTestSMGW/bin/Debug/Microsoft.Practices.EnterpriseLibrary.Data.dll | 0 ThreadTestSMGW/ThreadTestSMGW/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache | 0 ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csproj.CopyComplete | 0 CMPPHOST/CMPPHOST/bin/Debug/DBFactory.dll | 0 ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.pdb | 0 Source/CMPP2_Source/bin/Debug/CMPP2.dll | 0 Source/DBFactory_Source/obj/Debug/DBFactory.dll | 0 ThreadTestSMGW/.vs/ThreadTestSMGW/v16/.suo | 0 ThreadTestSMGW/ThreadTestSMGW/ThreadTestSMGW_TemporaryKey.pfx | 0 80 files changed, 1,517 insertions(+), 1 deletions(-) diff --git a/CMPPHOST/CMPPHOST/Program.cs b/CMPPHOST/CMPPHOST/Program.cs index 19ef1b0..0d75514 100644 --- a/CMPPHOST/CMPPHOST/Program.cs +++ b/CMPPHOST/CMPPHOST/Program.cs @@ -193,7 +193,7 @@ Console.WriteLine(mobile); DateTime oneStartTime = DateTime.Now; Console.WriteLine("鍙戦�佷竴鏉″紑濮嬫椂闂达細" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:ms")); - MTWaitInfo mtInfo = new MTWaitInfo(Guid.NewGuid().ToString(), "10690183", "001", mobile, 1, "01","0","銆愭帉楠忋�戦獙璇佺爜娴嬭瘯鐭俊锛岃蹇界暐,鎵规锛�"+ batchId + "搴忓彿锛�"+i,"","",1,1); + MTWaitInfo mtInfo = new MTWaitInfo(Guid.NewGuid().ToString(), "10690001", "001", mobile, 1, "01","0","銆愭帉楠忋�戦獙璇佺爜娴嬭瘯鐭俊锛岃蹇界暐,鎵规锛�"+ batchId + "搴忓彿锛�"+i,"","",1,1); sendSubmit(new SubmitInfo(mtInfo, (uint)i, 0)); DateTime oneEndTime = DateTime.Now; diff --git a/CMPPHOST/CMPPHOST/bin/Debug/BusinessFactory.dll b/CMPPHOST/CMPPHOST/bin/Debug/BusinessFactory.dll index b5ee41a..e5f16e9 100644 --- a/CMPPHOST/CMPPHOST/bin/Debug/BusinessFactory.dll +++ b/CMPPHOST/CMPPHOST/bin/Debug/BusinessFactory.dll Binary files differ diff --git a/CMPPHOST/CMPPHOST/bin/Debug/BusinessFactory.pdb b/CMPPHOST/CMPPHOST/bin/Debug/BusinessFactory.pdb index d28e00e..ad89bbf 100644 --- a/CMPPHOST/CMPPHOST/bin/Debug/BusinessFactory.pdb +++ b/CMPPHOST/CMPPHOST/bin/Debug/BusinessFactory.pdb Binary files differ diff --git a/CMPPHOST/CMPPHOST/bin/Debug/CMPP2.dll b/CMPPHOST/CMPPHOST/bin/Debug/CMPP2.dll index cddff62..06e0a2c 100644 --- a/CMPPHOST/CMPPHOST/bin/Debug/CMPP2.dll +++ b/CMPPHOST/CMPPHOST/bin/Debug/CMPP2.dll Binary files differ diff --git a/CMPPHOST/CMPPHOST/bin/Debug/CMPP2.pdb b/CMPPHOST/CMPPHOST/bin/Debug/CMPP2.pdb index f8574c1..5fa3694 100644 --- a/CMPPHOST/CMPPHOST/bin/Debug/CMPP2.pdb +++ b/CMPPHOST/CMPPHOST/bin/Debug/CMPP2.pdb Binary files differ diff --git a/CMPPHOST/CMPPHOST/bin/Debug/CMPPHOST.exe b/CMPPHOST/CMPPHOST/bin/Debug/CMPPHOST.exe index 1918ca5..545f076 100644 --- a/CMPPHOST/CMPPHOST/bin/Debug/CMPPHOST.exe +++ b/CMPPHOST/CMPPHOST/bin/Debug/CMPPHOST.exe Binary files differ diff --git a/CMPPHOST/CMPPHOST/bin/Debug/CMPPHOST.pdb b/CMPPHOST/CMPPHOST/bin/Debug/CMPPHOST.pdb index 726b878..5463561 100644 --- a/CMPPHOST/CMPPHOST/bin/Debug/CMPPHOST.pdb +++ b/CMPPHOST/CMPPHOST/bin/Debug/CMPPHOST.pdb Binary files differ diff --git a/CMPPHOST/CMPPHOST/bin/Debug/DBFactory.dll b/CMPPHOST/CMPPHOST/bin/Debug/DBFactory.dll index d7639dd..1dadfda 100644 --- a/CMPPHOST/CMPPHOST/bin/Debug/DBFactory.dll +++ b/CMPPHOST/CMPPHOST/bin/Debug/DBFactory.dll Binary files differ diff --git a/CMPPHOST/CMPPHOST/bin/Debug/DBFactory.pdb b/CMPPHOST/CMPPHOST/bin/Debug/DBFactory.pdb index f7fd08c..84625eb 100644 --- a/CMPPHOST/CMPPHOST/bin/Debug/DBFactory.pdb +++ b/CMPPHOST/CMPPHOST/bin/Debug/DBFactory.pdb Binary files differ diff --git a/CMPPHOST/CMPPHOST/obj/Debug/CMPPHOST.csproj.AssemblyReference.cache b/CMPPHOST/CMPPHOST/obj/Debug/CMPPHOST.csproj.AssemblyReference.cache index 03272ff..dddf37b 100644 --- a/CMPPHOST/CMPPHOST/obj/Debug/CMPPHOST.csproj.AssemblyReference.cache +++ b/CMPPHOST/CMPPHOST/obj/Debug/CMPPHOST.csproj.AssemblyReference.cache Binary files differ diff --git a/CMPPHOST/CMPPHOST/obj/Debug/CMPPHOST.exe b/CMPPHOST/CMPPHOST/obj/Debug/CMPPHOST.exe index 1918ca5..545f076 100644 --- a/CMPPHOST/CMPPHOST/obj/Debug/CMPPHOST.exe +++ b/CMPPHOST/CMPPHOST/obj/Debug/CMPPHOST.exe Binary files differ diff --git a/CMPPHOST/CMPPHOST/obj/Debug/CMPPHOST.pdb b/CMPPHOST/CMPPHOST/obj/Debug/CMPPHOST.pdb index 726b878..5463561 100644 --- a/CMPPHOST/CMPPHOST/obj/Debug/CMPPHOST.pdb +++ b/CMPPHOST/CMPPHOST/obj/Debug/CMPPHOST.pdb Binary files differ diff --git a/Source/.vs/APPCMPP2/v16/.suo b/Source/.vs/APPCMPP2/v16/.suo index d897931..3058f97 100644 --- a/Source/.vs/APPCMPP2/v16/.suo +++ b/Source/.vs/APPCMPP2/v16/.suo Binary files differ diff --git a/Source/BusinessFactory_Source/bin/Debug/BusinessFactory.dll b/Source/BusinessFactory_Source/bin/Debug/BusinessFactory.dll index b5ee41a..e5f16e9 100644 --- a/Source/BusinessFactory_Source/bin/Debug/BusinessFactory.dll +++ b/Source/BusinessFactory_Source/bin/Debug/BusinessFactory.dll Binary files differ diff --git a/Source/BusinessFactory_Source/bin/Debug/BusinessFactory.pdb b/Source/BusinessFactory_Source/bin/Debug/BusinessFactory.pdb index d28e00e..ad89bbf 100644 --- a/Source/BusinessFactory_Source/bin/Debug/BusinessFactory.pdb +++ b/Source/BusinessFactory_Source/bin/Debug/BusinessFactory.pdb Binary files differ diff --git a/Source/BusinessFactory_Source/bin/Debug/DBFactory.dll b/Source/BusinessFactory_Source/bin/Debug/DBFactory.dll index d7639dd..1dadfda 100644 --- a/Source/BusinessFactory_Source/bin/Debug/DBFactory.dll +++ b/Source/BusinessFactory_Source/bin/Debug/DBFactory.dll Binary files differ diff --git a/Source/BusinessFactory_Source/bin/Debug/DBFactory.pdb b/Source/BusinessFactory_Source/bin/Debug/DBFactory.pdb index f7fd08c..84625eb 100644 --- a/Source/BusinessFactory_Source/bin/Debug/DBFactory.pdb +++ b/Source/BusinessFactory_Source/bin/Debug/DBFactory.pdb Binary files differ diff --git a/Source/BusinessFactory_Source/obj/Debug/BusinessFactory.csproj.AssemblyReference.cache b/Source/BusinessFactory_Source/obj/Debug/BusinessFactory.csproj.AssemblyReference.cache index a3a30e6..2b3855a 100644 --- a/Source/BusinessFactory_Source/obj/Debug/BusinessFactory.csproj.AssemblyReference.cache +++ b/Source/BusinessFactory_Source/obj/Debug/BusinessFactory.csproj.AssemblyReference.cache Binary files differ diff --git a/Source/BusinessFactory_Source/obj/Debug/BusinessFactory.dll b/Source/BusinessFactory_Source/obj/Debug/BusinessFactory.dll index b5ee41a..e5f16e9 100644 --- a/Source/BusinessFactory_Source/obj/Debug/BusinessFactory.dll +++ b/Source/BusinessFactory_Source/obj/Debug/BusinessFactory.dll Binary files differ diff --git a/Source/BusinessFactory_Source/obj/Debug/BusinessFactory.pdb b/Source/BusinessFactory_Source/obj/Debug/BusinessFactory.pdb index d28e00e..ad89bbf 100644 --- a/Source/BusinessFactory_Source/obj/Debug/BusinessFactory.pdb +++ b/Source/BusinessFactory_Source/obj/Debug/BusinessFactory.pdb Binary files differ diff --git a/Source/CMPP2_Source/bin/Debug/CMPP2.dll b/Source/CMPP2_Source/bin/Debug/CMPP2.dll index cddff62..06e0a2c 100644 --- a/Source/CMPP2_Source/bin/Debug/CMPP2.dll +++ b/Source/CMPP2_Source/bin/Debug/CMPP2.dll Binary files differ diff --git a/Source/CMPP2_Source/bin/Debug/CMPP2.pdb b/Source/CMPP2_Source/bin/Debug/CMPP2.pdb index f8574c1..5fa3694 100644 --- a/Source/CMPP2_Source/bin/Debug/CMPP2.pdb +++ b/Source/CMPP2_Source/bin/Debug/CMPP2.pdb Binary files differ diff --git a/Source/CMPP2_Source/obj/Debug/CMPP2.dll b/Source/CMPP2_Source/obj/Debug/CMPP2.dll index cddff62..06e0a2c 100644 --- a/Source/CMPP2_Source/obj/Debug/CMPP2.dll +++ b/Source/CMPP2_Source/obj/Debug/CMPP2.dll Binary files differ diff --git a/Source/CMPP2_Source/obj/Debug/CMPP2.pdb b/Source/CMPP2_Source/obj/Debug/CMPP2.pdb index f8574c1..5fa3694 100644 --- a/Source/CMPP2_Source/obj/Debug/CMPP2.pdb +++ b/Source/CMPP2_Source/obj/Debug/CMPP2.pdb Binary files differ diff --git a/Source/DBFactory_Source/bin/Debug/DBFactory.dll b/Source/DBFactory_Source/bin/Debug/DBFactory.dll index d7639dd..1dadfda 100644 --- a/Source/DBFactory_Source/bin/Debug/DBFactory.dll +++ b/Source/DBFactory_Source/bin/Debug/DBFactory.dll Binary files differ diff --git a/Source/DBFactory_Source/bin/Debug/DBFactory.pdb b/Source/DBFactory_Source/bin/Debug/DBFactory.pdb index f7fd08c..84625eb 100644 --- a/Source/DBFactory_Source/bin/Debug/DBFactory.pdb +++ b/Source/DBFactory_Source/bin/Debug/DBFactory.pdb Binary files differ diff --git a/Source/DBFactory_Source/obj/Debug/DBFactory.csproj.AssemblyReference.cache b/Source/DBFactory_Source/obj/Debug/DBFactory.csproj.AssemblyReference.cache new file mode 100644 index 0000000..42c4ef3 --- /dev/null +++ b/Source/DBFactory_Source/obj/Debug/DBFactory.csproj.AssemblyReference.cache Binary files differ diff --git a/Source/DBFactory_Source/obj/Debug/DBFactory.csproj.FileListAbsolute.txt b/Source/DBFactory_Source/obj/Debug/DBFactory.csproj.FileListAbsolute.txt index bae91c7..11f0feb 100644 --- a/Source/DBFactory_Source/obj/Debug/DBFactory.csproj.FileListAbsolute.txt +++ b/Source/DBFactory_Source/obj/Debug/DBFactory.csproj.FileListAbsolute.txt @@ -30,3 +30,4 @@ C:\Users\mac\Desktop\Work-Archives\SMGW\CMPP\Source\DBFactory_Source\obj\Debug\DBFactory.csproj.CopyComplete C:\Users\mac\Desktop\Work-Archives\SMGW\CMPP\Source\DBFactory_Source\obj\Debug\DBFactory.dll C:\Users\mac\Desktop\Work-Archives\SMGW\CMPP\Source\DBFactory_Source\obj\Debug\DBFactory.pdb +C:\Users\mac\Desktop\Work-Archives\SMGW\CMPP\Source\DBFactory_Source\obj\Debug\DBFactory.csproj.AssemblyReference.cache diff --git a/Source/DBFactory_Source/obj/Debug/DBFactory.dll b/Source/DBFactory_Source/obj/Debug/DBFactory.dll index d7639dd..1dadfda 100644 --- a/Source/DBFactory_Source/obj/Debug/DBFactory.dll +++ b/Source/DBFactory_Source/obj/Debug/DBFactory.dll Binary files differ diff --git a/Source/DBFactory_Source/obj/Debug/DBFactory.pdb b/Source/DBFactory_Source/obj/Debug/DBFactory.pdb index f7fd08c..84625eb 100644 --- a/Source/DBFactory_Source/obj/Debug/DBFactory.pdb +++ b/Source/DBFactory_Source/obj/Debug/DBFactory.pdb Binary files differ diff --git a/ThreadTestSMGW/.vs/ThreadTestSMGW/v15/Server/sqlite3/db.lock b/ThreadTestSMGW/.vs/ThreadTestSMGW/v15/Server/sqlite3/db.lock new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/ThreadTestSMGW/.vs/ThreadTestSMGW/v15/Server/sqlite3/db.lock diff --git a/ThreadTestSMGW/.vs/ThreadTestSMGW/v15/Server/sqlite3/storage.ide b/ThreadTestSMGW/.vs/ThreadTestSMGW/v15/Server/sqlite3/storage.ide new file mode 100644 index 0000000..eec83ed --- /dev/null +++ b/ThreadTestSMGW/.vs/ThreadTestSMGW/v15/Server/sqlite3/storage.ide Binary files differ diff --git a/ThreadTestSMGW/.vs/ThreadTestSMGW/v15/Server/sqlite3/storage.ide-shm b/ThreadTestSMGW/.vs/ThreadTestSMGW/v15/Server/sqlite3/storage.ide-shm new file mode 100644 index 0000000..5b31123 --- /dev/null +++ b/ThreadTestSMGW/.vs/ThreadTestSMGW/v15/Server/sqlite3/storage.ide-shm Binary files differ diff --git a/ThreadTestSMGW/.vs/ThreadTestSMGW/v15/Server/sqlite3/storage.ide-wal b/ThreadTestSMGW/.vs/ThreadTestSMGW/v15/Server/sqlite3/storage.ide-wal new file mode 100644 index 0000000..d843d1c --- /dev/null +++ b/ThreadTestSMGW/.vs/ThreadTestSMGW/v15/Server/sqlite3/storage.ide-wal Binary files differ diff --git a/ThreadTestSMGW/.vs/ThreadTestSMGW/v16/.suo b/ThreadTestSMGW/.vs/ThreadTestSMGW/v16/.suo new file mode 100644 index 0000000..85f72aa --- /dev/null +++ b/ThreadTestSMGW/.vs/ThreadTestSMGW/v16/.suo Binary files differ diff --git a/ThreadTestSMGW/ThreadTestSMGW.sln b/ThreadTestSMGW/ThreadTestSMGW.sln new file mode 100644 index 0000000..d6847f5 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW.sln @@ -0,0 +1,20 @@ +锘� +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ThreadTestSMGW", "ThreadTestSMGW\ThreadTestSMGW.csproj", "{41AA65C8-B54E-4ECF-835C-48BC12F71B8C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {41AA65C8-B54E-4ECF-835C-48BC12F71B8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {41AA65C8-B54E-4ECF-835C-48BC12F71B8C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {41AA65C8-B54E-4ECF-835C-48BC12F71B8C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {41AA65C8-B54E-4ECF-835C-48BC12F71B8C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/ThreadTestSMGW/ThreadTestSMGW/App.config b/ThreadTestSMGW/ThreadTestSMGW/App.config new file mode 100644 index 0000000..73c0d37 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/App.config @@ -0,0 +1,36 @@ +锘�<?xml version="1.0" encoding="utf-8" ?> +<configuration> + <startup> + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> + </startup> + <appSettings> + <add key="account" value="922002"/> + <add key="password" value="123456"/> + <add key="extno" value="2"/> + + + + <add key="mobiles" value="13611452175"/> + <add key="content" value="銆愬搧涓婂搧銆戜綘濂� 鎴戞槸鍝佷笂鍝佸鏈� 鍗佸垎鎶辨瓑璁㈠崟缂栧彿锛� SN1564800905667153"/> + <add key="URL" value="http://8.129.227.30:7862"/> + + <!--绾跨▼鏁�--> + <add key="ThreadNum" value="1"/> + <!-- 寰幆娆℃暟--> + <add key="CycNum" value="1"/> + <add key="Count" value="1"/> + + <!--寮�濮嬫椂闂�--> + <add key="startTime" value="13"/> + <!--缁撴潫鏃堕棿--> + <add key="endTime" value="15"/> + + <add key="ConnectionString" value="server=.;uid=sa;pwd=123456;database=sqluser"/> + + + </appSettings> + + <connectionStrings> + <add name="ConnectionString" connectionString="server=.;uid=sa;pwd=123456;database=sqluser" providerName="System.Data.SqlClient"/> + </connectionStrings> +</configuration> \ No newline at end of file diff --git a/ThreadTestSMGW/ThreadTestSMGW/DataSql.cs b/ThreadTestSMGW/ThreadTestSMGW/DataSql.cs new file mode 100644 index 0000000..8569a95 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/DataSql.cs @@ -0,0 +1,75 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Data; +using System.Data.SqlClient; +using Microsoft.Practices.EnterpriseLibrary.Data; + +namespace ThreadTestSMGW +{ + public class DataSql + { + //Database da = DatabaseFactory.CreateDatabase("ConnectionString"); + ////鎻掑叆鏁版嵁 + //public int InsertSql(string starttime,string endtime) + //{ + // string sql = @"insert into tb_jzcs(creattime,updatetime) values(@createtime,@updatetime) ;select @@IDENTITY;"; + // System.Data.SqlClient.SqlCommand cmd = new SqlCommand(); + // cmd.Parameters.Add(new SqlParameter() { ParameterName = "@createtime", Value = starttime }); + // cmd.Parameters.Add(new SqlParameter() { ParameterName="@updatetime",Value=endtime}); + // cmd.CommandText = sql; + // cmd.CommandType = CommandType.Text; + // cmd.CommandTimeout = 1000000000; + // object ret=da.ExecuteScalar(cmd); + // return Convert.ToInt32(ret); + //} + + //public void UpdateSql(string time,int id) + //{ + // string sql = @"update tb_jzcs set updatetime=@updatetime where id=@id"; + // System.Data.SqlClient.SqlCommand cmd = new SqlCommand(); + // cmd.Parameters.Add(new SqlParameter() { ParameterName = "@updatetime", Value = time }); + // cmd.Parameters.Add(new SqlParameter() { ParameterName="@id",Value=id}); + // cmd.CommandText = sql; + // cmd.CommandType = CommandType.Text; + // cmd.CommandTimeout = 1000000000; + // da.ExecuteNonQuery(cmd); + //} + + /**/ + /// <summary> + /// SqlBulkCopy + /// </summary> + /// <param name="connectionString">鐩爣杩炴帴瀛楃</param> + /// <param name="TableName">鐩爣琛�</param> + /// <param name="dt">婧愭暟鎹�</param> + public void SqlBulkCopyByDatatable(string connectionString, string TableName, DataTable dt) + { + using (SqlConnection conn = new SqlConnection(connectionString)) + { + //鐢熸垚SqlBulkCopy 瀹炰緥锛屾瀯閫犲嚱鏁版寚瀹氫簡鐩爣鏁版嵁搴擄紝浣跨敤SqlBulkCopyOptions.UseInternalTransaction鏄寚杩佺Щ鍔ㄤ綔鎸囧畾鍦ㄤ竴涓猅ransaction褰撲腑锛屽鏋滄暟鎹縼绉讳腑浜х敓閿欒鎴栧紓甯稿皢鍙戠敓鍥炴粴銆� + using (SqlBulkCopy sqlbulkcopy = new SqlBulkCopy(connectionString, SqlBulkCopyOptions.UseInternalTransaction)) + { + try + { + sqlbulkcopy.BulkCopyTimeout = 5000;//鎸囧畾鎿嶄綔瀹屾垚鐨凾imeout鏃堕棿 + sqlbulkcopy.DestinationTableName = TableName; + for (int i = 0; i < dt.Columns.Count; i++) + { + sqlbulkcopy.ColumnMappings.Add(dt.Columns[i].ColumnName, dt.Columns[i].ColumnName); + } + + + sqlbulkcopy.WriteToServer(dt);//WriteToServer鏂规硶灏辨槸灏嗘暟鎹簮鎷峰鍒扮洰鏍囨暟鎹簱銆傚湪浣跨敤WriteToServer鏂规硶涔嬪墠蹇呴』鍏堟寚瀹� DestinationTableName灞炴�э紝涔熷氨鏄洰鏍囨暟鎹簱鐨勮〃鍚� + } + catch (System.Exception ex) + { + throw ex; + } + } + } + } + } +} diff --git a/ThreadTestSMGW/ThreadTestSMGW/ListToDt.cs b/ThreadTestSMGW/ThreadTestSMGW/ListToDt.cs new file mode 100644 index 0000000..51b45b3 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/ListToDt.cs @@ -0,0 +1,58 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.ComponentModel; +using System.Data; +using System.Reflection; + +namespace ThreadTestSMGW +{ + public class ListToDt + { + public DataTable ListToDataTable<T>(List<T> entitys) + { + + //妫�鏌ュ疄浣撻泦鍚堜笉鑳戒负绌� + if (entitys == null || entitys.Count < 1) + { + return new DataTable(); + } + + //鍙栧嚭绗竴涓疄浣撶殑鎵�鏈塒ropertie + Type entityType = entitys[0].GetType(); + PropertyInfo[] entityProperties = entityType.GetProperties(); + + //鐢熸垚DataTable鐨剆tructure + //鐢熶骇浠g爜涓紝搴斿皢鐢熸垚鐨凞ataTable缁撴瀯Cache璧锋潵锛屾澶勭暐 + DataTable dt = new DataTable("dt"); + for (int i = 0; i < entityProperties.Length; i++) + { + //dt.Columns.Add(entityProperties[i].Name, entityProperties[i].PropertyType); + dt.Columns.Add(entityProperties[i].Name); + } + + //灏嗘墍鏈塭ntity娣诲姞鍒癉ataTable涓� + foreach (object entity in entitys) + { + //妫�鏌ユ墍鏈夌殑鐨勫疄浣撻兘涓哄悓涓�绫诲瀷 + if (entity.GetType() != entityType) + { + throw new Exception("瑕佽浆鎹㈢殑闆嗗悎鍏冪礌绫诲瀷涓嶄竴鑷�"); + } + object[] entityValues = new object[entityProperties.Length]; + for (int i = 0; i < entityProperties.Length; i++) + { + entityValues[i] = entityProperties[i].GetValue(entity, null); + + } + dt.Rows.Add(entityValues); + } + return dt; + } + + + } + +} diff --git a/ThreadTestSMGW/ThreadTestSMGW/Program.cs b/ThreadTestSMGW/ThreadTestSMGW/Program.cs new file mode 100644 index 0000000..e11315c --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/Program.cs @@ -0,0 +1,316 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System.IO; +using System.Data; +using System.Data.SqlClient; +using Microsoft.Practices.EnterpriseLibrary.Data; +using System.Collections; +using System.Reflection; +using System.ComponentModel; + +namespace ThreadTestSMGW +{ + class Program + { + //private static int poolFlag = 0;//澹版槑鏍囪 + //private const int amountThread = 10000;//绾跨▼鎬婚噺 + //private const int maxThread = 10000;//鍙墽琛岀嚎绋嬫渶澶ф暟閲� + //private static Mutex muxConsole = new Mutex(); + + //鍒濆鍖栫煭淇″彂閫佸弬鏁� + private static string account = System.Configuration.ConfigurationManager.AppSettings["account"]; + private static string password = System.Configuration.ConfigurationManager.AppSettings["password"]; + private static string mobile = System.Configuration.ConfigurationManager.AppSettings["mobiles"]; + private static string extno = System.Configuration.ConfigurationManager.AppSettings["extno"]; + private static string content = System.Configuration.ConfigurationManager.AppSettings["content"]; + private static string ThreadNum = System.Configuration.ConfigurationManager.AppSettings["ThreadNum"];//绾跨▼鎬绘暟 + private static string CycNum = System.Configuration.ConfigurationManager.AppSettings["CycNum"]; //寰幆娆℃暟 + + private static int startTime = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["startTime"]); + private static int endTime = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["endTime"]); + public static string conn = System.Configuration.ConfigurationManager.AppSettings["ConnectionString"]; + + private static int CountNum = Int32.Parse(System.Configuration.ConfigurationManager.AppSettings["Count"]); + + + public static bool listFlag = true; //鎻掑叆鎴愬姛鏍囪瘑 + static void Main(string[] args) + { + //Thread.Sleep(10000); + Console.WriteLine("寮�濮嬫墽琛�..."); + + Thread threads = new Thread(new ThreadStart(DealSMS)); + threads.Start(); + + //Thread[] threads = new Thread[Int32.Parse(ThreadNum)]; + //for (int i = 0; i < Int32.Parse(ThreadNum); i++) + //{ + // threads[i] = new Thread(DealSMS); + // threads[i].IsBackground = true; + // threads[i].Name = "绾跨▼" + i; + // threads[i].Start(); + + //} + + //Thread listThread = new Thread(listTime);//鍒楄〃澶勭悊 + //listThread.Name = "鍒楄〃绾跨▼"; + //listThread.Start(); + + //Thread ReportThread = new Thread(GetReport); + //ReportThread.Start(); + + + + //bool flag = true; + + + //while (true) + //{ + // for (int i = 0; i < Int32.Parse(ThreadNum); i++) + // { + // if (threads[i].IsAlive == false) + // { flag = false; } + // else { flag = true; } + // } + // if (flag == false) + // { + // if (listFlag==false) + // { + // //Console.WriteLine("缁熻鎻掑叆瀹屾垚"); + // listThread.Abort(); + // break; + // } + + // } + //} + //Console.ReadKey(); + + } + + static void GetReport() + { + //while (true) + //{ + // SMSHandler sms = new SMSHandler(); + // sms.Report(account, password); + // Thread.Sleep(2000); + //} + } + + + //鎻掑叆鍒楄〃 + public static List<SMSModel> smsList = new List<SMSModel>(); + private static object olock = new object(); + public static void addList(string smsid,string starttime,string endtime,string content) + { + lock (olock) + { + smsList.Add(new SMSModel() { smsid = smsid, starttime = starttime, endtime = endtime,content=content}); + } + } + public static int Count = 0; + //绉婚櫎鍒楄〃 + static void listTime() + { + Random r = new Random(); + int[] a =new int[60]; + int iii = 1000; + for (int i = 0; i < 60; i++) + { + a[i] = iii; + iii = 1000 + iii; + } + + int temp = a[r.Next(59)]; + + while (true) + { + try + { + if (smsList.Count == CountNum) + { + Console.WriteLine("缁熻绾跨▼闃诲:" + temp); + Thread.Sleep(temp); + + Console.WriteLine("缁熻寮�濮�..."); + DataSql ds = new DataSql(); + ListToDt ltd = new ListToDt(); + ds.SqlBulkCopyByDatatable(conn, "tb_cs", ltd.ListToDataTable<SMSModel>(smsList)); + Console.WriteLine("缁熻缁撴潫..."); + listFlag = false; + break; + } + } + catch (Exception ex) + { Console.WriteLine(ex.Message); } + + /* + for (int i = 0; i < smsList.Count; i++) + { + DataSql ds = new DataSql(); + try + { + int ii = ds.InsertSql(smsList[i].starttime, smsList[i].endtime);//鎻掑叆鏁版嵁搴� + if (ii > 0) + { + ++Count; smsList.RemoveAt(i); + } + else + { + Console.WriteLine("鏁版嵁搴撴彃鍏ュ紓甯�.."); + } + } + catch (Exception ex) + { + Console.WriteLine(ex.Message); + } + } + */ + } + + } + + + + + //绾跨▼澶勭悊 + static void DealSMS() + { + Thread.CurrentThread.Name = "鍙戦�佺嚎绋�"; + var dt = DateTime.Now; + if(true) + { + int i = 0; + while (i < Int32.Parse(CycNum)) + //while(true) + { + i++; + SMSHandler sms = new SMSHandler(); + //TornadoSMSHandler sms = new TornadoSMSHandler(); + string addTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"); + + string result = sms.SendSMS(account, password, extno, mobile, content);//杩堣繙缃戝叧 + Console.WriteLine(content); + //StrToHex sth = new StrToHex(); + //string content2 = sth.ToHexString(System.Text.Encoding.Default.GetBytes(content)); + + //string result = sms.SendSMS(account,password,mobile,content2); + + //string[] sArray = result.Split(','); + + + //addList(sArray[0], addTime, sArray[1], content2); + + //鐐瑰鐐圭煭淇℃彁浜� + + //string mobileConentList = "13611452175#銆愭帉楠忋�戞偍鐨勭煭淇$爜鏄�322734,鏈夋晥鏈熶负30鍒嗛挓銆傝嫢闈炴湰浜烘搷浣滐紝璇峰強鏃朵慨鏀瑰瘑鐮併�俓n692676113#銆愭帉楠忋�戞偍鐨勭煭淇$爜鏄�322734,鏈夋晥鏈熶负30鍒嗛挓銆傝嫢闈炴湰浜烘搷浣滐紝璇峰強鏃朵慨鏀瑰瘑鐮併��"; + //string result = sms.SendSMS(account,password,extno,mobileConentList); + + //Console.WriteLine(mobileConentList); + string str = string.Format("[{0}]--鎻愪氦鏃堕棿:{1}--鎻愪氦缁撴灉:{2}", Thread.CurrentThread.Name, addTime, result); + //WriteLog(str); + Console.WriteLine(str); + + Console.ReadKey(); + Thread.Sleep(10); + + } + + Console.WriteLine("["+Thread.CurrentThread.Name+"]--绋嬫墽琛屽畬姣�..."+i); + Thread.CurrentThread.Abort(); + } + } + + + + static ReaderWriterLockSlim LogWriteLock = new ReaderWriterLockSlim(); + //鍐欐棩蹇� + public static void WriteLog(string str) + { + try + { + LogWriteLock.EnterWriteLock(); + string sFilePath = System.IO.Directory.GetCurrentDirectory(); + string sFileName = DateTime.Now.Date.ToString("yyyy-MM-dd")+"-sms.log"; + sFileName = sFilePath + "\\" + sFileName; + if (!Directory.Exists(sFilePath)) + { + Directory.CreateDirectory(sFilePath); + } + FileStream fs; + StreamWriter sw; + if (File.Exists(sFileName)) + { + fs = new FileStream(sFileName, FileMode.Append, FileAccess.Write); + } + else + { + fs = new FileStream(sFileName, FileMode.Create, FileAccess.Write); + } + sw = new StreamWriter(fs); + sw.WriteLine(str); + sw.Close(); + fs.Close(); + } + catch (Exception ex) + { + Console.WriteLine(ex.Message); + } + finally + { + LogWriteLock.ExitWriteLock(); + } + } + + + + + + + + + + + #region 娉ㄩ噴鎺夌殑 + /* + public static void Run() + { + muxConsole.WaitOne(); //闃诲闃熷垪 + Interlocked.Increment(ref poolFlag); //鏍囪+1 + if (poolFlag < maxThread) //鍒ゆ柇鏄惁杈惧埌绾跨▼涓婇檺 + { + muxConsole.ReleaseMutex(); //閲婃斁闃熷垪閿侊紝鍔犲叆鎵ц绾跨▼ + } + //Console.WriteLine("{0} 姝e湪杩愯......\n", Thread.CurrentThread.Name); + + SMSHandler sms = new SMSHandler(); + string errmsg = ""; + bool flag = sms.SendSMS(account,password,extno,mobile,content,out errmsg); + + + //Thread.Sleep(3000); //妯℃嫙鎵ц锛屾殏鍋�3绉掗挓 + //Console.WriteLine("{0} 宸茬粡涓....{1}..\n", Thread.CurrentThread.Name,errmsg); + + Interlocked.Decrement(ref poolFlag); //鏍囪-1 + try + { + muxConsole.ReleaseMutex(); //閲婃斁闃诲 + } + catch { } + } + public static void Run2() + { + SMSHandler sms = new SMSHandler(); + content = "銆愭祴璇曘�戠嚎绋嬶紝寮�濮嬫墽琛屾祴璇�,鏃堕棿:" + DateTime.Now.ToString(); + string errmsg = ""; + sms.SendSMS(account, password, extno, mobile, content, out errmsg); + Console.WriteLine("{0} 宸茬粡涓....{1}..\n", Thread.CurrentThread.Name, errmsg); + } + */ + #endregion + } +} diff --git a/ThreadTestSMGW/ThreadTestSMGW/Properties/AssemblyInfo.cs b/ThreadTestSMGW/ThreadTestSMGW/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0f9b526 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +锘縰sing System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 鏈夊叧绋嬪簭闆嗙殑甯歌淇℃伅閫氳繃浠ヤ笅 +// 鐗规�ч泦鎺у埗銆傛洿鏀硅繖浜涚壒鎬у�煎彲淇敼 +// 涓庣▼搴忛泦鍏宠仈鐨勪俊鎭�� +[assembly: AssemblyTitle("ThreadTestSMGW")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Company")] +[assembly: AssemblyProduct("ThreadTestSMGW")] +[assembly: AssemblyCopyright("Copyright 漏 Company 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 灏� ComVisible 璁剧疆涓� false 浣挎绋嬪簭闆嗕腑鐨勭被鍨� +// 瀵� COM 缁勪欢涓嶅彲瑙併�傚鏋滈渶瑕佷粠 COM 璁块棶姝ょ▼搴忛泦涓殑绫诲瀷锛� +// 鍒欏皢璇ョ被鍨嬩笂鐨� ComVisible 鐗规�ц缃负 true銆� +[assembly: ComVisible(false)] + +// 濡傛灉姝ら」鐩悜 COM 鍏紑锛屽垯涓嬪垪 GUID 鐢ㄤ簬绫诲瀷搴撶殑 ID +[assembly: Guid("fe5778e8-4288-4d1b-97d8-8f3e0f22a5da")] + +// 绋嬪簭闆嗙殑鐗堟湰淇℃伅鐢变笅闈㈠洓涓�肩粍鎴�: +// +// 涓荤増鏈� +// 娆$増鏈� +// 鐢熸垚鍙� +// 淇鍙� +// +// 鍙互鎸囧畾鎵�鏈夎繖浜涘�硷紝涔熷彲浠ヤ娇鐢ㄢ�滅敓鎴愬彿鈥濆拰鈥滀慨璁㈠彿鈥濈殑榛樿鍊硷紝 +// 鏂规硶鏄寜濡備笅鎵�绀轰娇鐢ㄢ��*鈥�: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ThreadTestSMGW/ThreadTestSMGW/SMSHandler.cs b/ThreadTestSMGW/ThreadTestSMGW/SMSHandler.cs new file mode 100644 index 0000000..b8ebb55 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/SMSHandler.cs @@ -0,0 +1,250 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.IO; +using System.Net; +using System.Xml; + +namespace ThreadTestSMGW +{ + public class SMSHandler + { + public static string SITEURL = System.Configuration.ConfigurationManager.AppSettings["URL"]; + public string errmsg = ""; + + /// <summary> + /// 鍙戦�佺煭淇� + /// </summary> + /// <param name="account"></param> + /// <param name="password"></param> + /// <param name="extendNo"></param> + /// <param name="mobileNo"></param> + /// <param name="content"></param> + /// <returns></returns> + public string SendSMS(string account, string password, string extendNo, string mobileNo, string content) + { + + if ( string.IsNullOrEmpty(account) || string.IsNullOrEmpty(password) || string.IsNullOrEmpty(mobileNo) || string.IsNullOrEmpty(content)) + { + //log4netService.Info(userid+account+password+mobileNo+content); + errmsg = "鍙傛暟涓嶅叏"; + return errmsg; + } + + /* + string postData = string.Format("action=send&account=璐﹀彿&password=瀵嗙爜&mobile=15023239810,13527576163&content=鍐呭&extno=1069012345"); + */ + //string requestUrl = string.Format("http://8.129.227.30:7862/sms"); + string requestUrl = string.Format(SITEURL+"/sms"); + StreamReader reader; + Uri requestUri = new Uri(requestUrl); + HttpWebRequest request = (HttpWebRequest)WebRequest.Create(requestUri); + request.Method = "POST"; + request.ContentType = "application/x-www-form-urlencoded"; + request.KeepAlive = true; + request.Timeout = 1000000; + StringBuilder data = new StringBuilder(); + data.Append("action=send"); + data.Append(string.Format("&account={0}", account)); + data.Append(string.Format("&password={0}", password)); + data.Append(string.Format("&extno={0}", extendNo)); + data.Append(string.Format("&mobile={0}", mobileNo)); + data.Append(string.Format("&content={0}", content+DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"))); + + //byte[] byteData = UTF8Encoding.GetEncoding("GB212").GetBytes(data.ToString()); + byte[] byteData = UTF8Encoding.UTF8.GetBytes(data.ToString());//utf缂栫爜鏍煎紡鏄炬�ц浆鎹� + request.ContentLength = byteData.Length; + // 寮�濮嬭姹� + using (Stream postStream = request.GetRequestStream()) + { + postStream.Write(byteData, 0, byteData.Length); + } + + + WebResponse response = (HttpWebResponse)request.GetResponse(); + //reader = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding("GB2312")); + reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8); + + StringBuilder builder = new StringBuilder(); + char[] buffer = new char[0x400]; + int charCount = 0; + while ((charCount = reader.Read(buffer, 0, buffer.Length)) > 0) + { + builder.Append(buffer, 0, charCount); + } + reader.Close(); + string result = builder.ToString(); + if (string.IsNullOrEmpty(result)) + { + errmsg = "鏈煡寮傚父"; + return errmsg; + } + XmlDocument docxml = new XmlDocument(); + docxml.LoadXml(result); + + //DataSql ds = new DataSql(); + + string r = docxml.SelectSingleNode("returnsms/returnstatus").InnerText; + if (r == "Success") + { + errmsg = docxml.SelectSingleNode("returnsms/taskID").InnerText; + //ds.UpdateSql(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),id); + return errmsg;// +","+DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"); + + } + else + { + errmsg = docxml.SelectSingleNode("returnsms/message").InnerText; + //ds.UpdateSql(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"), id); + return errmsg;// +"," + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"); + } + } + + + + /// <summary> + /// 鐐瑰鐐圭煭淇″彂閫� + /// </summary> + /// <param name="account"></param> + /// <param name="password"></param> + /// <param name="extendNo"></param> + /// <param name="mobileConentList"></param> + /// <returns></returns> + public string SendSMS(string account, string password, string extendNo, string mobileConentList) + { + + if (string.IsNullOrEmpty(account) || string.IsNullOrEmpty(password) || string.IsNullOrEmpty(mobileConentList)) + { + //log4netService.Info(userid+account+password+mobileNo+content); + errmsg = "鍙傛暟涓嶅叏"; + return errmsg; + } + string requestUrl = string.Format(SITEURL + "/sms"); + StreamReader reader; + Uri requestUri = new Uri(requestUrl); + HttpWebRequest request = (HttpWebRequest)WebRequest.Create(requestUri); + request.Method = "POST"; + request.ContentType = "application/x-www-form-urlencoded"; + request.KeepAlive = true; + request.Timeout = 1000000; + StringBuilder data = new StringBuilder(); + data.Append("action=p2p"); + data.Append(string.Format("&account={0}", account)); + data.Append(string.Format("&password={0}", password)); + data.Append(string.Format("&extno={0}", extendNo)); + data.Append(string.Format("&mobileContentList={0}", mobileConentList)); + data.Append(string.Format("&rt=json")); + + //byte[] byteData = UTF8Encoding.GetEncoding("GB212").GetBytes(data.ToString()); + byte[] byteData = UTF8Encoding.UTF8.GetBytes(data.ToString());//utf缂栫爜鏍煎紡鏄炬�ц浆鎹� + request.ContentLength = byteData.Length; + // 寮�濮嬭姹� + using (Stream postStream = request.GetRequestStream()) + { + postStream.Write(byteData, 0, byteData.Length); + } + + + WebResponse response = (HttpWebResponse)request.GetResponse(); + //reader = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding("GB2312")); + reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8); + + StringBuilder builder = new StringBuilder(); + char[] buffer = new char[0x400]; + int charCount = 0; + while ((charCount = reader.Read(buffer, 0, buffer.Length)) > 0) + { + builder.Append(buffer, 0, charCount); + } + reader.Close(); + string result = builder.ToString(); + if (string.IsNullOrEmpty(result)) + { + errmsg = "鏈煡寮傚父"; + return errmsg; + } + return result; + + + //XmlDocument docxml = new XmlDocument(); + //docxml.LoadXml(result); + + + + //string r = docxml.SelectSingleNode("returnsms/returnstatus").InnerText; + //if (r == "Success") + //{ + // errmsg = docxml.SelectSingleNode("returnsms/taskID").InnerText; + + // return errmsg; + + //} + //else + //{ + // errmsg = docxml.SelectSingleNode("returnsms/message").InnerText; + + // return errmsg; + //} + } + + + public string Report(string account, string password) + { + + if (string.IsNullOrEmpty(account) || string.IsNullOrEmpty(password)) + { + //log4netService.Info(userid+account+password+mobileNo+content); + errmsg = "鍙傛暟涓嶅叏"; + return errmsg; + } + + /* + string postData = string.Format("action=send&account=璐﹀彿&password=瀵嗙爜&mobile=15023239810,13527576163&content=鍐呭&extno=1069012345"); + */ + string requestUrl = string.Format(SITEURL); + StreamReader reader; + Uri requestUri = new Uri(requestUrl); + HttpWebRequest request = (HttpWebRequest)WebRequest.Create(requestUri); + request.Method = "POST"; + request.ContentType = "application/x-www-form-urlencoded"; + request.KeepAlive = true; + request.Timeout = 1000000; + StringBuilder data = new StringBuilder(); + data.Append("action=report"); + data.Append(string.Format("&account={0}", account)); + data.Append(string.Format("&password={0}", password)); + + //byte[] byteData = UTF8Encoding.GetEncoding("GB212").GetBytes(data.ToString()); + byte[] byteData = UTF8Encoding.UTF8.GetBytes(data.ToString());//utf缂栫爜鏍煎紡鏄炬�ц浆鎹� + request.ContentLength = byteData.Length; + // 寮�濮嬭姹� + using (Stream postStream = request.GetRequestStream()) + { + postStream.Write(byteData, 0, byteData.Length); + } + + + WebResponse response = (HttpWebResponse)request.GetResponse(); + //reader = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding("GB2312")); + reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8); + + StringBuilder builder = new StringBuilder(); + char[] buffer = new char[0x400]; + int charCount = 0; + while ((charCount = reader.Read(buffer, 0, buffer.Length)) > 0) + { + builder.Append(buffer, 0, charCount); + } + reader.Close(); + string result = builder.ToString(); + if (string.IsNullOrEmpty(result)) + { + errmsg = "鏈煡寮傚父"; + return errmsg; + } + return "鐘舵�佹姤鍛�" + "," + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"); + } + } +} diff --git a/ThreadTestSMGW/ThreadTestSMGW/SMSModel.cs b/ThreadTestSMGW/ThreadTestSMGW/SMSModel.cs new file mode 100644 index 0000000..3a137e5 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/SMSModel.cs @@ -0,0 +1,17 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ThreadTestSMGW +{ + public class SMSModel + { + public int id { get; set; } + public string smsid { get; set; } + public string starttime { get; set; } + public string endtime { get; set; } + public string content { get; set; } + } +} diff --git a/ThreadTestSMGW/ThreadTestSMGW/StrToHex.cs b/ThreadTestSMGW/ThreadTestSMGW/StrToHex.cs new file mode 100644 index 0000000..5989d8d --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/StrToHex.cs @@ -0,0 +1,24 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ThreadTestSMGW +{ + public class StrToHex + { + public string ToHexString(byte[] bytes) + { + string byteStr = string.Empty; + if (bytes != null || bytes.Length > 0) + { + foreach (var item in bytes) + { + byteStr += string.Format("{0:X2}", item); + } + } + return byteStr; + } + } +} diff --git a/ThreadTestSMGW/ThreadTestSMGW/ThreadTestSMGW.csproj b/ThreadTestSMGW/ThreadTestSMGW/ThreadTestSMGW.csproj new file mode 100644 index 0000000..4df8967 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/ThreadTestSMGW.csproj @@ -0,0 +1,122 @@ +锘�<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProjectGuid>{41AA65C8-B54E-4ECF-835C-48BC12F71B8C}</ProjectGuid> + <OutputType>Exe</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>ThreadTestSMGW</RootNamespace> + <AssemblyName>ThreadTestSMGW</AssemblyName> + <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + <IsWebBootstrapper>false</IsWebBootstrapper> + <PublishUrl>D:\Backup\妗岄潰\sms\</PublishUrl> + <Install>true</Install> + <InstallFrom>Disk</InstallFrom> + <UpdateEnabled>false</UpdateEnabled> + <UpdateMode>Foreground</UpdateMode> + <UpdateInterval>7</UpdateInterval> + <UpdateIntervalUnits>Days</UpdateIntervalUnits> + <UpdatePeriodically>false</UpdatePeriodically> + <UpdateRequired>false</UpdateRequired> + <MapFileExtensions>true</MapFileExtensions> + <AutorunEnabled>true</AutorunEnabled> + <ApplicationRevision>1</ApplicationRevision> + <ApplicationVersion>1.0.0.%2a</ApplicationVersion> + <UseApplicationTrust>false</UseApplicationTrust> + <PublishWizardCompleted>true</PublishWizardCompleted> + <BootstrapperEnabled>true</BootstrapperEnabled> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <PlatformTarget>AnyCPU</PlatformTarget> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <PlatformTarget>AnyCPU</PlatformTarget> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup> + <ManifestCertificateThumbprint>A4D4AEDA1A5E298D8C66BE35DB7E3295F2F74D1B</ManifestCertificateThumbprint> + </PropertyGroup> + <PropertyGroup> + <ManifestKeyFile>ThreadTestSMGW_TemporaryKey.pfx</ManifestKeyFile> + </PropertyGroup> + <PropertyGroup> + <GenerateManifests>true</GenerateManifests> + </PropertyGroup> + <PropertyGroup> + <SignManifests>false</SignManifests> + </PropertyGroup> + <ItemGroup> + <Reference Include="Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0, Culture=neutral, PublicKeyToken=e44a2bc38ed2c13c, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\..\..\妗岄潰\Microsoft.Practices.EnterpriseLibrary.Common.dll</HintPath> + </Reference> + <Reference Include="Microsoft.Practices.EnterpriseLibrary.Data"> + <HintPath>..\..\FAQ\Lib\Microsoft.Practices.EnterpriseLibrary.Data.dll</HintPath> + </Reference> + <Reference Include="System" /> + <Reference Include="System.Configuration" /> + <Reference Include="System.Core" /> + <Reference Include="System.Data.Linq" /> + <Reference Include="System.Xml.Linq" /> + <Reference Include="System.Data.DataSetExtensions" /> + <Reference Include="Microsoft.CSharp" /> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="DataSql.cs" /> + <Compile Include="ListToDt.cs" /> + <Compile Include="Program.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + <Compile Include="SMSHandler.cs" /> + <Compile Include="SMSModel.cs" /> + <Compile Include="StrToHex.cs" /> + <Compile Include="TornadoSMSHandler.cs" /> + </ItemGroup> + <ItemGroup> + <None Include="App.config"> + <SubType>Designer</SubType> + </None> + <None Include="ThreadTestSMGW_TemporaryKey.pfx" /> + </ItemGroup> + <ItemGroup> + <BootstrapperPackage Include=".NETFramework,Version=v4.5"> + <Visible>False</Visible> + <ProductName>Microsoft .NET Framework 4.5 %28x86 鍜� x64%29</ProductName> + <Install>true</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.5 SP1</ProductName> + <Install>false</Install> + </BootstrapperPackage> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file diff --git a/ThreadTestSMGW/ThreadTestSMGW/ThreadTestSMGW.csproj.user b/ThreadTestSMGW/ThreadTestSMGW/ThreadTestSMGW.csproj.user new file mode 100644 index 0000000..3086a0f --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/ThreadTestSMGW.csproj.user @@ -0,0 +1,16 @@ +锘�<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <PublishUrlHistory /> + <InstallUrlHistory /> + <SupportUrlHistory /> + <UpdateUrlHistory /> + <BootstrapperUrlHistory /> + <ErrorReportUrlHistory /> + <FallbackCulture>zh-CN</FallbackCulture> + <VerifyUploadedFiles>false</VerifyUploadedFiles> + </PropertyGroup> + <PropertyGroup> + <EnableSecurityDebugging>false</EnableSecurityDebugging> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/ThreadTestSMGW/ThreadTestSMGW/ThreadTestSMGW_TemporaryKey.pfx b/ThreadTestSMGW/ThreadTestSMGW/ThreadTestSMGW_TemporaryKey.pfx new file mode 100644 index 0000000..12e16c4 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/ThreadTestSMGW_TemporaryKey.pfx Binary files differ diff --git a/ThreadTestSMGW/ThreadTestSMGW/TornadoSMSHandler.cs b/ThreadTestSMGW/ThreadTestSMGW/TornadoSMSHandler.cs new file mode 100644 index 0000000..be37da3 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/TornadoSMSHandler.cs @@ -0,0 +1,48 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.IO; +using System.Net; + +namespace ThreadTestSMGW +{ + public class TornadoSMSHandler + { + + //URL璇诲彇閰嶇疆鏂囦欢 + public static string SITEURL = System.Configuration.ConfigurationManager.AppSettings["URL"]; + + public string SendSMS(string un, string pw, string da, string hex) + { + string time = System.DateTime.Now.ToString(); + + string other = "&dc=15&rd=1"; + + + string requestUrl = SITEURL + "?un=" + un + "&pw=" + pw + "&da=" + da + "&sm=" + hex + other; //璇锋眰鍦板潃 + StreamReader reader; //瀹炵幇涓�涓� TextReader(琛ㄧず鍙鍙栬繛缁瓧绗︾郴鍒楃殑璇诲彇鍣ㄣ��)锛屼娇鍏朵互涓�绉嶇壒瀹氱殑缂栫爜浠庡瓧鑺傛祦涓鍙栧瓧绗︺�� + Uri requestUri = new Uri(requestUrl); //Uri 绫伙紝鎻愪緵缁熶竴璧勬簮鏍囪瘑绗� (URI) 鐨勫璞¤〃绀哄舰寮忓拰瀵� URI 鍚勯儴鍒嗙殑杞绘澗璁块棶銆� + HttpWebRequest request = (HttpWebRequest)WebRequest.Create(requestUri); + //鎻愪緵 WebRequest 绫荤殑 HTTP 鐗瑰畾鐨勫疄鐜般�� + request.Method = "Get"; + request.ContentType = "application/x-www-form-urlencoded"; + request.KeepAlive = true; + request.Timeout = 1000000; + + WebResponse response = (HttpWebResponse)request.GetResponse(); + reader = new StreamReader(response.GetResponseStream()); + + StringBuilder builder = new StringBuilder(); + char[] buffer = new char[0x400]; + int charCount = 0; + while ((charCount = reader.Read(buffer, 0, buffer.Length)) > 0) + { + builder.Append(buffer, 0, charCount); + } + reader.Close(); + return builder.ToString(); + } + } +} diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/Microsoft.Practices.EnterpriseLibrary.Data.dll b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/Microsoft.Practices.EnterpriseLibrary.Data.dll new file mode 100644 index 0000000..8244899 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/Microsoft.Practices.EnterpriseLibrary.Data.dll Binary files differ diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/Microsoft.Practices.ObjectBuilder.dll b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/Microsoft.Practices.ObjectBuilder.dll new file mode 100644 index 0000000..b2c90d2 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/Microsoft.Practices.ObjectBuilder.dll Binary files differ diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.application b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.application new file mode 100644 index 0000000..4ee2930 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.application @@ -0,0 +1,21 @@ +锘�<?xml version="1.0" encoding="utf-8"?> +<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2"> + <assemblyIdentity name="ThreadTestSMGW.application" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" /> + <description asmv2:publisher="ThreadTestSMGW" asmv2:product="ThreadTestSMGW" xmlns="urn:schemas-microsoft-com:asm.v1" /> + <deployment install="true" mapFileExtensions="true" /> + <compatibleFrameworks xmlns="urn:schemas-microsoft-com:clickonce.v2"> + <framework targetVersion="4.5" profile="Full" supportedRuntime="4.0.30319" /> + </compatibleFrameworks> + <dependency> + <dependentAssembly dependencyType="install" codebase="ThreadTestSMGW.exe.manifest" size="4918"> + <assemblyIdentity name="ThreadTestSMGW.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" /> + <hash> + <dsig:Transforms> + <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> + </dsig:Transforms> + <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> + <dsig:DigestValue>eMng0jCkanpScQxDkfWqZiso+F1hEzP/G5/5M7mP9j8=</dsig:DigestValue> + </hash> + </dependentAssembly> + </dependency> +</asmv1:assembly> \ No newline at end of file diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.exe b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.exe new file mode 100644 index 0000000..6d506fb --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.exe Binary files differ diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.exe.config b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.exe.config new file mode 100644 index 0000000..73c0d37 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.exe.config @@ -0,0 +1,36 @@ +锘�<?xml version="1.0" encoding="utf-8" ?> +<configuration> + <startup> + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> + </startup> + <appSettings> + <add key="account" value="922002"/> + <add key="password" value="123456"/> + <add key="extno" value="2"/> + + + + <add key="mobiles" value="13611452175"/> + <add key="content" value="銆愬搧涓婂搧銆戜綘濂� 鎴戞槸鍝佷笂鍝佸鏈� 鍗佸垎鎶辨瓑璁㈠崟缂栧彿锛� SN1564800905667153"/> + <add key="URL" value="http://8.129.227.30:7862"/> + + <!--绾跨▼鏁�--> + <add key="ThreadNum" value="1"/> + <!-- 寰幆娆℃暟--> + <add key="CycNum" value="1"/> + <add key="Count" value="1"/> + + <!--寮�濮嬫椂闂�--> + <add key="startTime" value="13"/> + <!--缁撴潫鏃堕棿--> + <add key="endTime" value="15"/> + + <add key="ConnectionString" value="server=.;uid=sa;pwd=123456;database=sqluser"/> + + + </appSettings> + + <connectionStrings> + <add name="ConnectionString" connectionString="server=.;uid=sa;pwd=123456;database=sqluser" providerName="System.Data.SqlClient"/> + </connectionStrings> +</configuration> \ No newline at end of file diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.exe.manifest b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.exe.manifest new file mode 100644 index 0000000..0801b92 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.exe.manifest @@ -0,0 +1,89 @@ +锘�<?xml version="1.0" encoding="utf-8"?> +<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2"> + <asmv1:assemblyIdentity name="ThreadTestSMGW.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" /> + <application /> + <entryPoint> + <assemblyIdentity name="ThreadTestSMGW" version="1.0.0.0" language="neutral" processorArchitecture="msil" /> + <commandLine file="ThreadTestSMGW.exe" parameters="" /> + </entryPoint> + <trustInfo> + <security> + <applicationRequestMinimum> + <PermissionSet Unrestricted="true" ID="Custom" SameSite="site" /> + <defaultAssemblyRequest permissionSetReference="Custom" /> + </applicationRequestMinimum> + <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> + <!-- + UAC 娓呭崟閫夐」 + 濡傛灉瑕佹洿鏀� Windows 鐢ㄦ埛甯愭埛鎺у埗绾у埆锛岃鐢ㄤ互涓嬭妭鐐逛箣涓�鏇挎崲 + requestedExecutionLevel 鑺傜偣銆� + + <requestedExecutionLevel level="asInvoker" uiAccess="false" /> + <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> + <requestedExecutionLevel level="highestAvailable" uiAccess="false" /> + + 濡傛灉瑕佸埄鐢ㄦ枃浠跺拰娉ㄥ唽琛ㄨ櫄鎷熷寲鎻愪緵 + 鍚戝悗鍏煎鎬э紝璇峰垹闄� requestedExecutionLevel 鑺傜偣銆� + --> + <requestedExecutionLevel level="asInvoker" uiAccess="false" /> + </requestedPrivileges> + </security> + </trustInfo> + <dependency> + <dependentOS> + <osVersionInfo> + <os majorVersion="5" minorVersion="1" buildNumber="2600" servicePackMajor="0" /> + </osVersionInfo> + </dependentOS> + </dependency> + <dependency> + <dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true"> + <assemblyIdentity name="Microsoft.Windows.CommonLanguageRuntime" version="4.0.30319.0" /> + </dependentAssembly> + </dependency> + <dependency> + <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Practices.EnterpriseLibrary.Data.dll" size="91560"> + <assemblyIdentity name="Microsoft.Practices.EnterpriseLibrary.Data" version="3.1.0.0" publicKeyToken="B03F5F7F11D50A3A" language="neutral" processorArchitecture="msil" /> + <hash> + <dsig:Transforms> + <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> + </dsig:Transforms> + <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> + <dsig:DigestValue>5P3qDSDGz9bDGHn31unvTus6ftmAfkJa6iebqfv+dSI=</dsig:DigestValue> + </hash> + </dependentAssembly> + </dependency> + <dependency> + <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Practices.ObjectBuilder.dll" size="64352"> + <assemblyIdentity name="Microsoft.Practices.ObjectBuilder" version="1.0.51206.0" publicKeyToken="B03F5F7F11D50A3A" language="neutral" processorArchitecture="msil" /> + <hash> + <dsig:Transforms> + <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> + </dsig:Transforms> + <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> + <dsig:DigestValue>A3j2MHO9WteoM08tQqtzuY6Y5BYmVMF9GS4QRBioGJ8=</dsig:DigestValue> + </hash> + </dependentAssembly> + </dependency> + <dependency> + <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ThreadTestSMGW.exe" size="14336"> + <assemblyIdentity name="ThreadTestSMGW" version="1.0.0.0" language="neutral" processorArchitecture="msil" /> + <hash> + <dsig:Transforms> + <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> + </dsig:Transforms> + <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> + <dsig:DigestValue>y/rO6/DGVeSVQaWCPRlVOOSOUaiHcjDqsRvUPiPrdbA=</dsig:DigestValue> + </hash> + </dependentAssembly> + </dependency> + <file name="ThreadTestSMGW.exe.config" size="1154"> + <hash> + <dsig:Transforms> + <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> + </dsig:Transforms> + <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> + <dsig:DigestValue>DL4jd/jEoemKHOiTJcCB2LH6LDm8RQXhKKRC1RLdCnk=</dsig:DigestValue> + </hash> + </file> +</asmv1:assembly> \ No newline at end of file diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.pdb b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.pdb new file mode 100644 index 0000000..014e108 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.pdb Binary files differ diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.vshost.application b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.vshost.application new file mode 100644 index 0000000..93a6ab3 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.vshost.application @@ -0,0 +1,21 @@ +锘�<?xml version="1.0" encoding="utf-8"?> +<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2"> + <assemblyIdentity name="ThreadTestSMGW.application" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" /> + <description asmv2:publisher="Company" asmv2:product="ThreadTestSMGW" xmlns="urn:schemas-microsoft-com:asm.v1" /> + <deployment install="true" mapFileExtensions="true" /> + <compatibleFrameworks xmlns="urn:schemas-microsoft-com:clickonce.v2"> + <framework targetVersion="4.5" profile="Full" supportedRuntime="4.0.30319" /> + </compatibleFrameworks> + <dependency> + <dependentAssembly dependencyType="install" codebase="ThreadTestSMGW.exe.manifest" size="6173"> + <assemblyIdentity name="ThreadTestSMGW.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" /> + <hash> + <dsig:Transforms> + <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> + </dsig:Transforms> + <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> + <dsig:DigestValue>mLCzw+Qa/prAofa+8dnMGNifSIFhBLMMAWFUYVePeFQ=</dsig:DigestValue> + </hash> + </dependentAssembly> + </dependency> +</asmv1:assembly> \ No newline at end of file diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.vshost.exe b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.vshost.exe new file mode 100644 index 0000000..8c84517 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.vshost.exe Binary files differ diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.vshost.exe.config b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.vshost.exe.config new file mode 100644 index 0000000..5bcc125 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.vshost.exe.config @@ -0,0 +1,36 @@ +锘�<?xml version="1.0" encoding="utf-8" ?> +<configuration> + <startup> + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> + </startup> + <appSettings> + <add key="account" value="922001"/> + <add key="password" value="123456"/> + <add key="extno" value="1"/> + + + + <add key="mobiles" value="13611452175,16626418557,18124279296"/> + <add key="content" value="銆愳嫚頃滌潃頄夈�戧碃臧濍嫎鞚� 鞁犿暅鞚�頄夓棎 霌彪頃橃嫚 鞁犽秳歃濍獏鞛愲(鞐秾) 鞙犿毃旮瓣皠鞚� 毵岆 霅橃棃鞚岇潉 鞎岆牑霌滊雼堧嫟. 鞝曥儊 瓯半灅鞐� 鞓來枼鞚� 鞐嗠弰搿� 牍犽ジ 鞁滌澕雮措 鞙犿毃 頃� 鞁犽秳歃濍獏鞛愲(鞐秾)毳� 靻岇頃橃嫓瓿� 雼� 頄� 彀疥惮鞐� 彀眷晞欤检嫓旮� 氚旊瀺雼堧嫟. 歆堧鞚� 鞛堨溂鞁滊┐ 400-6688-600鞐� 氍胳潣頃橃嫓旮� 氚旊瀺雼堧嫟. 臧愳偓頃╇媹雼�."/> + <add key="URL" value="http://47.98.114.143:7862"/> + + <!--绾跨▼鏁�--> + <add key="ThreadNum" value="1"/> + <!-- 寰幆娆℃暟--> + <add key="CycNum" value="10"/> + <add key="Count" value="10"/> + + <!--寮�濮嬫椂闂�--> + <add key="startTime" value="13"/> + <!--缁撴潫鏃堕棿--> + <add key="endTime" value="15"/> + + <add key="ConnectionString" value="server=.;uid=sa;pwd=123456;database=sqluser"/> + + + </appSettings> + + <connectionStrings> + <add name="ConnectionString" connectionString="server=.;uid=sa;pwd=123456;database=sqluser" providerName="System.Data.SqlClient"/> + </connectionStrings> +</configuration> \ No newline at end of file diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.vshost.exe.manifest b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.vshost.exe.manifest new file mode 100644 index 0000000..db781e1 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/ThreadTestSMGW.vshost.exe.manifest @@ -0,0 +1,109 @@ +锘�<?xml version="1.0" encoding="utf-8"?> +<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2"> + <asmv1:assemblyIdentity name="ThreadTestSMGW.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" /> + <application /> + <entryPoint> + <assemblyIdentity name="ThreadTestSMGW" version="1.0.0.0" language="neutral" processorArchitecture="msil" /> + <commandLine file="ThreadTestSMGW.exe" parameters="" /> + </entryPoint> + <trustInfo> + <security> + <applicationRequestMinimum> + <PermissionSet Unrestricted="true" ID="Custom" SameSite="site" /> + <defaultAssemblyRequest permissionSetReference="Custom" /> + </applicationRequestMinimum> + <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> + <!-- + UAC 娓呭崟閫夐」 + 濡傛灉瑕佹洿鏀� Windows 鐢ㄦ埛甯愭埛鎺у埗绾у埆锛岃鐢ㄤ互涓嬭妭鐐逛箣涓�鏇挎崲 + requestedExecutionLevel 鑺傜偣銆� + + <requestedExecutionLevel level="asInvoker" uiAccess="false" /> + <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> + <requestedExecutionLevel level="highestAvailable" uiAccess="false" /> + + 濡傛灉瑕佸埄鐢ㄦ枃浠跺拰娉ㄥ唽琛ㄨ櫄鎷熷寲鎻愪緵 + 鍚戝悗鍏煎鎬э紝璇峰垹闄� requestedExecutionLevel 鑺傜偣銆� + --> + <requestedExecutionLevel level="asInvoker" uiAccess="false" /> + </requestedPrivileges> + </security> + </trustInfo> + <dependency> + <dependentOS> + <osVersionInfo> + <os majorVersion="5" minorVersion="1" buildNumber="2600" servicePackMajor="0" /> + </osVersionInfo> + </dependentOS> + </dependency> + <dependency> + <dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true"> + <assemblyIdentity name="Microsoft.Windows.CommonLanguageRuntime" version="4.0.30319.0" /> + </dependentAssembly> + </dependency> + <dependency> + <dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true"> + <assemblyIdentity name="Microsoft.Practices.EnterpriseLibrary.Common" version="3.1.0.0" publicKeyToken="B03F5F7F11D50A3A" language="neutral" processorArchitecture="msil" /> + </dependentAssembly> + </dependency> + <dependency> + <dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true"> + <assemblyIdentity name="Microsoft.Practices.EnterpriseLibrary.Common" version="4.1.0.0" publicKeyToken="E44A2BC38ED2C13C" language="neutral" processorArchitecture="msil" /> + </dependentAssembly> + </dependency> + <dependency> + <dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true"> + <assemblyIdentity name="Microsoft.Practices.ObjectBuilder2" version="2.2.0.0" publicKeyToken="31BF3856AD364E35" language="neutral" processorArchitecture="msil" /> + </dependentAssembly> + </dependency> + <dependency> + <dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true"> + <assemblyIdentity name="Microsoft.Practices.Unity" version="1.2.0.0" publicKeyToken="31BF3856AD364E35" language="neutral" processorArchitecture="msil" /> + </dependentAssembly> + </dependency> + <dependency> + <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Practices.EnterpriseLibrary.Data.dll" size="91560"> + <assemblyIdentity name="Microsoft.Practices.EnterpriseLibrary.Data" version="3.1.0.0" publicKeyToken="B03F5F7F11D50A3A" language="neutral" processorArchitecture="msil" /> + <hash> + <dsig:Transforms> + <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> + </dsig:Transforms> + <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> + <dsig:DigestValue>5P3qDSDGz9bDGHn31unvTus6ftmAfkJa6iebqfv+dSI=</dsig:DigestValue> + </hash> + </dependentAssembly> + </dependency> + <dependency> + <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Practices.ObjectBuilder.dll" size="64352"> + <assemblyIdentity name="Microsoft.Practices.ObjectBuilder" version="1.0.51206.0" publicKeyToken="B03F5F7F11D50A3A" language="neutral" processorArchitecture="msil" /> + <hash> + <dsig:Transforms> + <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> + </dsig:Transforms> + <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> + <dsig:DigestValue>A3j2MHO9WteoM08tQqtzuY6Y5BYmVMF9GS4QRBioGJ8=</dsig:DigestValue> + </hash> + </dependentAssembly> + </dependency> + <dependency> + <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ThreadTestSMGW.exe" size="13824"> + <assemblyIdentity name="ThreadTestSMGW" version="1.0.0.0" language="neutral" processorArchitecture="msil" /> + <hash> + <dsig:Transforms> + <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> + </dsig:Transforms> + <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> + <dsig:DigestValue>ywc7qPyytxIfXCkYgcC9KCcNShlf4L/jICI/Y5dbvd8=</dsig:DigestValue> + </hash> + </dependentAssembly> + </dependency> + <file name="ThreadTestSMGW.exe.config" size="1481"> + <hash> + <dsig:Transforms> + <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> + </dsig:Transforms> + <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> + <dsig:DigestValue>KjgjBj63dKNSVQImneSWtD57529jQqFCUoUhzw2Iwxc=</dsig:DigestValue> + </hash> + </file> +</asmv1:assembly> \ No newline at end of file diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/app.publish/ThreadTestSMGW.exe b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/app.publish/ThreadTestSMGW.exe new file mode 100644 index 0000000..6d506fb --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/app.publish/ThreadTestSMGW.exe Binary files differ diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.exe b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.exe new file mode 100644 index 0000000..a775cc8 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.exe Binary files differ diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.exe.config b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.exe.config new file mode 100644 index 0000000..ed10091 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.exe.config @@ -0,0 +1,10 @@ +锘�<?xml version="1.0" encoding="utf-8" ?> +<configuration> + <startup> + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> + </startup> +<appSettings> + <!--鍚姩绋嬪簭涓暟--> + <add key="Num" value="10"/> +</appSettings> +</configuration> \ No newline at end of file diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.pdb b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.pdb new file mode 100644 index 0000000..1657fe6 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.pdb Binary files differ diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.vshost.exe b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.vshost.exe new file mode 100644 index 0000000..8c84517 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.vshost.exe Binary files differ diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.vshost.exe.config b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.vshost.exe.config new file mode 100644 index 0000000..ed10091 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.vshost.exe.config @@ -0,0 +1,10 @@ +锘�<?xml version="1.0" encoding="utf-8" ?> +<configuration> + <startup> + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> + </startup> +<appSettings> + <!--鍚姩绋嬪簭涓暟--> + <add key="Num" value="10"/> +</appSettings> +</configuration> \ No newline at end of file diff --git a/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.vshost.exe.manifest b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/bin/Debug/cmd.vshost.exe.manifest @@ -0,0 +1,11 @@ +锘�<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> + <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/> + <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> + <security> + <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> + <requestedExecutionLevel level="asInvoker" uiAccess="false"/> + </requestedPrivileges> + </security> + </trustInfo> +</assembly> diff --git a/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/.NETFramework,Version=v4.5.AssemblyAttributes.cs b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/.NETFramework,Version=v4.5.AssemblyAttributes.cs new file mode 100644 index 0000000..e5dc9b8 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/.NETFramework,Version=v4.5.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// <autogenerated /> +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5", FrameworkDisplayName = ".NET Framework 4.5")] diff --git a/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..28e7eb5 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache Binary files differ diff --git a/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs diff --git a/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs diff --git a/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs diff --git a/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.application b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.application new file mode 100644 index 0000000..4ee2930 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.application @@ -0,0 +1,21 @@ +锘�<?xml version="1.0" encoding="utf-8"?> +<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2"> + <assemblyIdentity name="ThreadTestSMGW.application" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" /> + <description asmv2:publisher="ThreadTestSMGW" asmv2:product="ThreadTestSMGW" xmlns="urn:schemas-microsoft-com:asm.v1" /> + <deployment install="true" mapFileExtensions="true" /> + <compatibleFrameworks xmlns="urn:schemas-microsoft-com:clickonce.v2"> + <framework targetVersion="4.5" profile="Full" supportedRuntime="4.0.30319" /> + </compatibleFrameworks> + <dependency> + <dependentAssembly dependencyType="install" codebase="ThreadTestSMGW.exe.manifest" size="4918"> + <assemblyIdentity name="ThreadTestSMGW.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" /> + <hash> + <dsig:Transforms> + <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> + </dsig:Transforms> + <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> + <dsig:DigestValue>eMng0jCkanpScQxDkfWqZiso+F1hEzP/G5/5M7mP9j8=</dsig:DigestValue> + </hash> + </dependentAssembly> + </dependency> +</asmv1:assembly> \ No newline at end of file diff --git a/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csproj.AssemblyReference.cache b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csproj.AssemblyReference.cache Binary files differ diff --git a/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csproj.CopyComplete b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csproj.CopyComplete diff --git a/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csproj.CoreCompileInputs.cache b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ec42a17 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +e31a5f56dfebab6c6ec67a9e294368062e79dc92 diff --git a/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csproj.FileListAbsolute.txt b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..8d0c3d0 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csproj.FileListAbsolute.txt @@ -0,0 +1,39 @@ +d:\Backup\鎴戠殑鏂囨。\Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\ThreadTestSMGW.exe.config +d:\Backup\鎴戠殑鏂囨。\Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\ThreadTestSMGW.exe +d:\Backup\鎴戠殑鏂囨。\Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\ThreadTestSMGW.pdb +d:\Backup\鎴戠殑鏂囨。\Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.csprojResolveAssemblyReference.cache +d:\Backup\鎴戠殑鏂囨。\Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.exe +d:\Backup\鎴戠殑鏂囨。\Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.pdb +D:\Backup\鎴戠殑鏂囨。\Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\Microsoft.Practices.EnterpriseLibrary.Data.dll +D:\Backup\鎴戠殑鏂囨。\Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\Microsoft.Practices.ObjectBuilder.dll +D:\Backup\鎴戠殑鏂囨。\Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\ThreadTestSMGW.exe.manifest +D:\Backup\鎴戠殑鏂囨。\Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\ThreadTestSMGW.application +D:\Backup\鎴戠殑鏂囨。\Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.exe.manifest +D:\Backup\鎴戠殑鏂囨。\Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.application +C:\Users\mac\Desktop\Archives\鏃у紑鍙戦」鐩枃妗Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.csproj.CoreCompileInputs.cache +C:\Users\mac\Desktop\Archives\鏃у紑鍙戦」鐩枃妗Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.exe +C:\Users\mac\Desktop\Archives\鏃у紑鍙戦」鐩枃妗Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.pdb +C:\Users\mac\Desktop\Archives\鏃у紑鍙戦」鐩枃妗Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\ThreadTestSMGW.exe.config +C:\Users\mac\Desktop\Archives\鏃у紑鍙戦」鐩枃妗Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\ThreadTestSMGW.exe.manifest +C:\Users\mac\Desktop\Archives\鏃у紑鍙戦」鐩枃妗Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\ThreadTestSMGW.application +C:\Users\mac\Desktop\Archives\鏃у紑鍙戦」鐩枃妗Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\ThreadTestSMGW.exe +C:\Users\mac\Desktop\Archives\鏃у紑鍙戦」鐩枃妗Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\ThreadTestSMGW.pdb +C:\Users\mac\Desktop\Archives\鏃у紑鍙戦」鐩枃妗Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\Microsoft.Practices.EnterpriseLibrary.Data.dll +C:\Users\mac\Desktop\Archives\鏃у紑鍙戦」鐩枃妗Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\Microsoft.Practices.ObjectBuilder.dll +C:\Users\mac\Desktop\Archives\鏃у紑鍙戦」鐩枃妗Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.exe.manifest +C:\Users\mac\Desktop\Archives\鏃у紑鍙戦」鐩枃妗Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.application +C:\Users\mac\Desktop\Archives\鏃у紑鍙戦」鐩枃妗Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.csproj.CopyComplete +C:\Users\mac\Desktop\Archives\鏃у紑鍙戦」鐩枃妗Visual Studio 2012\Projects\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.csprojAssemblyReference.cache +C:\Users\mac\Desktop\Archives\SMGW\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\ThreadTestSMGW.exe.config +C:\Users\mac\Desktop\Archives\SMGW\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\ThreadTestSMGW.exe.manifest +C:\Users\mac\Desktop\Archives\SMGW\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\ThreadTestSMGW.application +C:\Users\mac\Desktop\Archives\SMGW\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\ThreadTestSMGW.exe +C:\Users\mac\Desktop\Archives\SMGW\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\ThreadTestSMGW.pdb +C:\Users\mac\Desktop\Archives\SMGW\ThreadTestSMGW\ThreadTestSMGW\bin\Debug\Microsoft.Practices.ObjectBuilder.dll +C:\Users\mac\Desktop\Archives\SMGW\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.csproj.CoreCompileInputs.cache +C:\Users\mac\Desktop\Archives\SMGW\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.exe.manifest +C:\Users\mac\Desktop\Archives\SMGW\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.application +C:\Users\mac\Desktop\Archives\SMGW\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.csproj.CopyComplete +C:\Users\mac\Desktop\Archives\SMGW\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.exe +C:\Users\mac\Desktop\Archives\SMGW\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.pdb +C:\Users\mac\Desktop\Archives\SMGW\ThreadTestSMGW\ThreadTestSMGW\obj\Debug\ThreadTestSMGW.csproj.AssemblyReference.cache diff --git a/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csprojResolveAssemblyReference.cache b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..d5f36e6 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.csprojResolveAssemblyReference.cache Binary files differ diff --git a/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.exe b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.exe new file mode 100644 index 0000000..6d506fb --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.exe Binary files differ diff --git a/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.exe.manifest b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.exe.manifest new file mode 100644 index 0000000..0801b92 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.exe.manifest @@ -0,0 +1,89 @@ +锘�<?xml version="1.0" encoding="utf-8"?> +<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2"> + <asmv1:assemblyIdentity name="ThreadTestSMGW.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" /> + <application /> + <entryPoint> + <assemblyIdentity name="ThreadTestSMGW" version="1.0.0.0" language="neutral" processorArchitecture="msil" /> + <commandLine file="ThreadTestSMGW.exe" parameters="" /> + </entryPoint> + <trustInfo> + <security> + <applicationRequestMinimum> + <PermissionSet Unrestricted="true" ID="Custom" SameSite="site" /> + <defaultAssemblyRequest permissionSetReference="Custom" /> + </applicationRequestMinimum> + <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> + <!-- + UAC 娓呭崟閫夐」 + 濡傛灉瑕佹洿鏀� Windows 鐢ㄦ埛甯愭埛鎺у埗绾у埆锛岃鐢ㄤ互涓嬭妭鐐逛箣涓�鏇挎崲 + requestedExecutionLevel 鑺傜偣銆� + + <requestedExecutionLevel level="asInvoker" uiAccess="false" /> + <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> + <requestedExecutionLevel level="highestAvailable" uiAccess="false" /> + + 濡傛灉瑕佸埄鐢ㄦ枃浠跺拰娉ㄥ唽琛ㄨ櫄鎷熷寲鎻愪緵 + 鍚戝悗鍏煎鎬э紝璇峰垹闄� requestedExecutionLevel 鑺傜偣銆� + --> + <requestedExecutionLevel level="asInvoker" uiAccess="false" /> + </requestedPrivileges> + </security> + </trustInfo> + <dependency> + <dependentOS> + <osVersionInfo> + <os majorVersion="5" minorVersion="1" buildNumber="2600" servicePackMajor="0" /> + </osVersionInfo> + </dependentOS> + </dependency> + <dependency> + <dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true"> + <assemblyIdentity name="Microsoft.Windows.CommonLanguageRuntime" version="4.0.30319.0" /> + </dependentAssembly> + </dependency> + <dependency> + <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Practices.EnterpriseLibrary.Data.dll" size="91560"> + <assemblyIdentity name="Microsoft.Practices.EnterpriseLibrary.Data" version="3.1.0.0" publicKeyToken="B03F5F7F11D50A3A" language="neutral" processorArchitecture="msil" /> + <hash> + <dsig:Transforms> + <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> + </dsig:Transforms> + <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> + <dsig:DigestValue>5P3qDSDGz9bDGHn31unvTus6ftmAfkJa6iebqfv+dSI=</dsig:DigestValue> + </hash> + </dependentAssembly> + </dependency> + <dependency> + <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Practices.ObjectBuilder.dll" size="64352"> + <assemblyIdentity name="Microsoft.Practices.ObjectBuilder" version="1.0.51206.0" publicKeyToken="B03F5F7F11D50A3A" language="neutral" processorArchitecture="msil" /> + <hash> + <dsig:Transforms> + <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> + </dsig:Transforms> + <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> + <dsig:DigestValue>A3j2MHO9WteoM08tQqtzuY6Y5BYmVMF9GS4QRBioGJ8=</dsig:DigestValue> + </hash> + </dependentAssembly> + </dependency> + <dependency> + <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ThreadTestSMGW.exe" size="14336"> + <assemblyIdentity name="ThreadTestSMGW" version="1.0.0.0" language="neutral" processorArchitecture="msil" /> + <hash> + <dsig:Transforms> + <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> + </dsig:Transforms> + <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> + <dsig:DigestValue>y/rO6/DGVeSVQaWCPRlVOOSOUaiHcjDqsRvUPiPrdbA=</dsig:DigestValue> + </hash> + </dependentAssembly> + </dependency> + <file name="ThreadTestSMGW.exe.config" size="1154"> + <hash> + <dsig:Transforms> + <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> + </dsig:Transforms> + <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> + <dsig:DigestValue>DL4jd/jEoemKHOiTJcCB2LH6LDm8RQXhKKRC1RLdCnk=</dsig:DigestValue> + </hash> + </file> +</asmv1:assembly> \ No newline at end of file diff --git a/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.pdb b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.pdb new file mode 100644 index 0000000..014e108 --- /dev/null +++ b/ThreadTestSMGW/ThreadTestSMGW/obj/Debug/ThreadTestSMGW.pdb Binary files differ -- Gitblit v1.9.1