using RabbitMQ.Client; using System; using System.Collections.Generic; using System.Text; namespace Core.RabbitMQBus.EventBus { public interface IConnectionChannel { /// <summary> /// 获取Channel /// </summary> /// <returns></returns> IModel GetChannel(); /// <summary> /// 创建连接 /// </summary> /// <returns></returns> IConnection GetConnection(); /// <summary> /// 交换机名称 /// </summary> string ExchangeName { get; } } }