資源簡介
通過MQ,與第三方軟件進行異步傳輸數據。注意需要安裝jdk環境,開啟activemq.bat服務。
代碼片段和文件信息
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.IO;
using?System.IO.Compression;
namespace?ApacheMQConsumer
{
????public?partial?class?Form1?:?Form
????{
????????static?IMessageProducer?prod1;
????????static?ITextMessage?message;
????????public?Form1()
????????{
????????????InitializeComponent();
????????????InitConsumer();
????????}
????????public?void?InitConsumer()
????????{
????????????//創建連接工廠
????????????IConnectionFactory?factory?=?new?ConnectionFactory(“tcp://localhost:61616“);
????????????//通過工廠構建連接
????????????IConnection?connect
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????13??2017-08-24?19:00??ApacheMQTest\.git\COMMIT_EDITMSG
?????文件????????310??2017-08-24?18:19??ApacheMQTest\.git\config
?????文件?????????73??2017-08-24?18:17??ApacheMQTest\.git\desc
?????文件????????119??2017-08-24?19:00??ApacheMQTest\.git\FETCH_HEAD
?????文件?????????23??2017-08-24?18:17??ApacheMQTest\.git\HEAD
?????文件????????478??2017-08-24?18:17??ApacheMQTest\.git\hooks\applypatch-msg.sample
?????文件????????896??2017-08-24?18:17??ApacheMQTest\.git\hooks\commit-msg.sample
?????文件????????189??2017-08-24?18:17??ApacheMQTest\.git\hooks\post-update.sample
?????文件????????424??2017-08-24?18:17??ApacheMQTest\.git\hooks\pre-applypatch.sample
?????文件???????1642??2017-08-24?18:17??ApacheMQTest\.git\hooks\pre-commit.sample
?????文件???????1348??2017-08-24?18:17??ApacheMQTest\.git\hooks\pre-push.sample
?????文件???????4898??2017-08-24?18:17??ApacheMQTest\.git\hooks\pre-reba
?????文件????????544??2017-08-24?18:17??ApacheMQTest\.git\hooks\pre-receive.sample
?????文件???????1239??2017-08-24?18:17??ApacheMQTest\.git\hooks\prepare-commit-msg.sample
?????文件???????3610??2017-08-24?18:17??ApacheMQTest\.git\hooks\update.sample
?????文件???????7707??2017-08-24?19:00??ApacheMQTest\.git\index
?????文件????????240??2017-08-24?18:17??ApacheMQTest\.git\info\exclude
?????文件????????828??2017-08-24?19:00??ApacheMQTest\.git\logs\HEAD
?????文件????????828??2017-08-24?19:00??ApacheMQTest\.git\logs\refs\heads\master
?????文件????????467??2017-08-24?19:01??ApacheMQTest\.git\logs\refs\remotes\origin\master
?????文件????????237??2017-08-31?16:57??ApacheMQTest\.git\ms-persist.xm
?????文件?????????93??2017-08-24?18:24??ApacheMQTest\.git\ob
?????文件???????4528??2017-08-24?18:20??ApacheMQTest\.git\ob
?????文件????????520??2017-08-24?18:20??ApacheMQTest\.git\ob
?????文件????????286??2017-08-24?19:00??ApacheMQTest\.git\ob
?????文件????????136??2017-08-24?18:20??ApacheMQTest\.git\ob
?????文件????????154??2017-08-24?18:19??ApacheMQTest\.git\ob
?????文件????????278??2017-08-24?18:20??ApacheMQTest\.git\ob
?????文件???????3566??2017-08-24?18:18??ApacheMQTest\.git\ob
?????文件???????1296??2017-08-24?18:24??ApacheMQTest\.git\ob
............此處省略379個文件信息
- 上一篇:C# 車位搖號抽獎系統
- 下一篇:C#發送郵件工具(MailTest)
評論
共有 條評論