public override bool CreateMQ(IList <string> routeKeyList) { this._channel = _connection.CreateModel(); this._channel.QueueDeclare(this._queue, base.MQConfig.IsDurable, false, base.MQConfig.AutoDelete, null); IModelExensions.QueueBind(this._channel, this._queue, null, null, null); return(true); }
public override void BindConfig(string queue, IList <string> routeKeyList) { this.Channel.QueueDeclare(queue, base.MQConfig.IsDurable, false, base.MQConfig.AutoDelete, null); foreach (var routeKey in routeKeyList) { IModelExensions.QueueBind(this.Channel, queue, base.MQConfig.Exchange, routeKey, null); } }
public override void BindConfig(string queue, string routeKey = null) { this.Channel.QueueDeclare(queue, base.MQConfig.IsDurable, false, base.MQConfig.AutoDelete, null); IModelExensions.QueueBind(this.Channel, queue, null, null, null); }