資源簡介
c# mq queue收發實例,缺少相關數據庫腳本,但是可以參考其思路
代碼片段和文件信息
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?Apache.NMS;
using?Apache.NMS.ActiveMQ;
using?System.Data.SqlClient;
using?System.Configuration;
using?System.Data.SqlClient;
namespace?mqConsumer
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????????InitConsumer();
????????}
????????public?string?strconn?=?System.Configuration.ConfigurationSettings.AppSettings[“dsn“];
????????public?void?InitConsumer()
????????{
????????????//創建連接工廠
????????????IConnectionFactory?factory?=?new?ConnectionFactory(textBox1.Text?);
???????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-11-26?14:37??activemq\
?????目錄???????????0??2019-11-26?14:40??activemq\Consumer\
?????目錄???????????0??2019-11-26?14:40??activemq\Consumer\mqConsumer\
?????目錄???????????0??2019-11-26?15:06??activemq\Consumer\mqConsumer\mqConsumer\
?????文件??????819200??2016-04-01?16:21??activemq\Consumer\mqConsumer\mqConsumer\Apache.NMS.ActiveMQ.dll
?????文件??????118784??2015-08-31?14:15??activemq\Consumer\mqConsumer\mqConsumer\Apache.NMS.Test.dll
?????文件??????257536??2015-08-31?14:15??activemq\Consumer\mqConsumer\mqConsumer\Apache.NMS.Test.pdb
?????文件???????77824??2015-08-31?14:15??activemq\Consumer\mqConsumer\mqConsumer\Apache.NMS.dll
?????文件??????196096??2015-08-31?14:15??activemq\Consumer\mqConsumer\mqConsumer\Apache.NMS.pdb
?????文件?????????906??2019-11-26?16:37??activemq\Consumer\mqConsumer\mqConsumer\App.config
?????文件????????2806??2019-11-26?15:42??activemq\Consumer\mqConsumer\mqConsumer\Form1.Designer.cs
?????文件????????6770??2019-11-27?21:03??activemq\Consumer\mqConsumer\mqConsumer\Form1.cs
?????文件????????5817??2019-11-26?15:42??activemq\Consumer\mqConsumer\mqConsumer\Form1.resx
?????文件?????????522??2019-11-26?14:40??activemq\Consumer\mqConsumer\mqConsumer\Program.cs
?????目錄???????????0??2019-11-26?14:40??activemq\Consumer\mqConsumer\mqConsumer\Properties\
?????文件????????1340??2019-11-26?14:40??activemq\Consumer\mqConsumer\mqConsumer\Properties\AssemblyInfo.cs
?????文件????????2872??2019-11-26?14:40??activemq\Consumer\mqConsumer\mqConsumer\Properties\Resources.Designer.cs
?????文件????????5612??2019-11-26?14:40??activemq\Consumer\mqConsumer\mqConsumer\Properties\Resources.resx
?????文件????????1097??2019-11-26?14:40??activemq\Consumer\mqConsumer\mqConsumer\Properties\Settings.Designer.cs
?????文件?????????249??2019-11-26?14:40??activemq\Consumer\mqConsumer\mqConsumer\Properties\Settings.settings
?????目錄???????????0??2019-11-26?14:40??activemq\Consumer\mqConsumer\mqConsumer\bin\
?????目錄???????????0??2019-11-28?20:40??activemq\Consumer\mqConsumer\mqConsumer\bin\Debug\
?????文件??????819200??2016-04-01?16:21??activemq\Consumer\mqConsumer\mqConsumer\bin\Debug\Apache.NMS.ActiveMQ.dll
?????文件??????118784??2015-08-31?14:15??activemq\Consumer\mqConsumer\mqConsumer\bin\Debug\Apache.NMS.Test.dll
?????文件??????257536??2015-08-31?14:15??activemq\Consumer\mqConsumer\mqConsumer\bin\Debug\Apache.NMS.Test.pdb
?????文件???????77824??2015-08-31?14:15??activemq\Consumer\mqConsumer\mqConsumer\bin\Debug\Apache.NMS.dll
?????文件??????196096??2015-08-31?14:15??activemq\Consumer\mqConsumer\mqConsumer\bin\Debug\Apache.NMS.pdb
?????文件???????11776??2019-11-28?20:40??activemq\Consumer\mqConsumer\mqConsumer\bin\Debug\mqConsumer.exe
?????文件?????????906??2019-11-26?16:37??activemq\Consumer\mqConsumer\mqConsumer\bin\Debug\mqConsumer.exe.config
?????文件???????22016??2019-11-28?20:40??activemq\Consumer\mqConsumer\mqConsumer\bin\Debug\mqConsumer.pdb
?????文件???????22984??2019-11-27?21:03??activemq\Consumer\mqConsumer\mqConsumer\bin\Debug\mqConsumer.vshost.exe
............此處省略70個文件信息
- 上一篇:C#實現上位機通訊
- 下一篇:WebSocket實現聊天室和點對點聊天
評論
共有 條評論