示例#1
0
 /// <summary>
 /// 构造方法
 /// 初始化各个对象以便就绪
 /// </summary>
 /// <param name="channel">渠道</param>
 /// <param name="messageQueueInfoFactory">消息队列信息工厂</param>
 public RabbitCoreBase(IModel channel, IMessageQueueInfoFactory messageQueueInfoFactory)
     : this(channel, RabbitMessageQueueInfo.From(messageQueueInfoFactory.Create()))
 {
 }
示例#2
0
 /// <summary>
 /// 构造方法
 /// 初始化各个对象以便就绪
 /// </summary>
 /// <param name="channel">渠道</param>
 /// <param name="queueOrOtherIdentify">队列或其他标识</param>
 /// <param name="messageQueueInfoFactory">消息队列信息工厂</param>
 /// <param name="virtualPath">虚拟路径</param>
 public RabbitRpcServer(IModel channel, string queueOrOtherIdentify, IMessageQueueInfoFactory messageQueueInfoFactory, string virtualPath = RabbitConnectionInfo.DEFAULT_VIRTUAL_PATH)
     : this(channel, RabbitMessageQueueInfo.From(messageQueueInfoFactory.Create(queueOrOtherIdentify, ConfigUtil.CreateContainerVirtualPathDic(virtualPath))))
 {
 }