资源简介
负载均衡
首先需要下载.net下的驱动类。rabbitmq.client.dll.安装后可以使用提供的文档。当然也可以直接从别的地方只下载rabbitmq.client.dll使用。
下载地址:http://www.rabbitmq.com/dotnet.html
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using RabbitMQ.Client;
namespace RabbitMQ_Receiver
{
class Program
{
static void Main(string[] args)
{
string exchange = “XJ.RabbitMQ.Exchange_Test“; //路由
string exchangeType = “fanout“; //交换模式
string routeKey = “XJ.RabbitMQ.RouteKey_Test“; //路由键
string serverAddress = “amqp://127.0.0.1:5672/“;
ConnectionFactory cf = new ConnectionFactory();
cf.Uri = serverAddress;
cf.UserName = “admin“;
cf.Password = “admin“;
cf.VirtualHost = “/“;
cf.RequestedHeartbeat = 0;
using (IConnection conn = cf.Cr
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6144 2014-12-02 09:55 RabbitMQ_Receiver\bin\Debug\RabbitMQ_Receiver.exe
文件 13824 2014-12-02 09:55 RabbitMQ_Receiver\bin\Debug\RabbitMQ_Receiver.pdb
文件 24216 2014-12-03 08:59 RabbitMQ_Receiver\bin\Debug\RabbitMQ_Receiver.vshost.exe
文件 490 2013-03-18 17:00 RabbitMQ_Receiver\bin\Debug\RabbitMQ_Receiver.vshost.exe.manifest
文件 6571 2014-12-02 09:55 RabbitMQ_Receiver\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 633 2014-12-03 08:59 RabbitMQ_Receiver\obj\Debug\RabbitMQ_Receiver.csproj.FileListAbsolute.txt
文件 11976 2014-12-02 09:55 RabbitMQ_Receiver\obj\Debug\RabbitMQ_Receiver.csprojResolveAssemblyReference.cache
文件 6144 2014-12-02 09:55 RabbitMQ_Receiver\obj\Debug\RabbitMQ_Receiver.exe
文件 13824 2014-12-02 09:55 RabbitMQ_Receiver\obj\Debug\RabbitMQ_Receiver.pdb
文件 2289 2014-12-02 09:55 RabbitMQ_Receiver\Program.cs
文件 1376 2014-12-01 09:11 RabbitMQ_Receiver\Properties\AssemblyInfo.cs
文件 2811 2014-12-01 09:20 RabbitMQ_Receiver\RabbitMQ_Receiver.csproj
文件 6656 2014-12-01 13:27 RabbitMQ_Sender\bin\Debug\RabbitMQ_Sender.exe
文件 13824 2014-12-01 13:27 RabbitMQ_Sender\bin\Debug\RabbitMQ_Sender.pdb
文件 24216 2014-12-01 17:49 RabbitMQ_Sender\bin\Debug\RabbitMQ_Sender.vshost.exe
文件 490 2013-03-18 17:00 RabbitMQ_Sender\bin\Debug\RabbitMQ_Sender.vshost.exe.manifest
文件 6567 2014-12-02 09:55 RabbitMQ_Sender\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 613 2014-12-02 09:55 RabbitMQ_Sender\obj\Debug\RabbitMQ_Sender.csproj.FileListAbsolute.txt
文件 11976 2014-12-02 09:55 RabbitMQ_Sender\obj\Debug\RabbitMQ_Sender.csprojResolveAssemblyReference.cache
文件 6656 2014-12-01 13:27 RabbitMQ_Sender\obj\Debug\RabbitMQ_Sender.exe
文件 13824 2014-12-01 13:27 RabbitMQ_Sender\obj\Debug\RabbitMQ_Sender.pdb
文件 2828 2014-12-01 13:27 RabbitMQ_Sender\Program.cs
文件 1372 2014-12-01 08:32 RabbitMQ_Sender\Properties\AssemblyInfo.cs
文件 2807 2014-12-01 09:04 RabbitMQ_Sender\RabbitMQ_Sender.csproj
目录 0 2014-12-01 09:11 RabbitMQ_Receiver\obj\Debug\TempPE
目录 0 2014-12-01 08:32 RabbitMQ_Sender\obj\Debug\TempPE
目录 0 2014-12-02 09:55 RabbitMQ_Receiver\bin\Debug
目录 0 2014-12-02 09:55 RabbitMQ_Receiver\obj\Debug
目录 0 2014-12-02 09:55 RabbitMQ_Sender\bin\Debug
目录 0 2014-12-02 09:55 RabbitMQ_Sender\obj\Debug
............此处省略11个文件信息
- 上一篇:mvc 发送邮件源码(验证邮件合法性)
- 下一篇:C# QQ自动注册机
评论
共有 条评论