• 大小: 1.45M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: C#  

资源简介

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个文件信息

评论

共有 条评论