public NotificationProducer(string serverNameEndPoint, string channelName, string rootingKey, bool messagePersistent) : base(RabbitMQManager.GetRabbitMQServer(serverNameEndPoint), channelName, rootingKey, "") { this._queueName = _routingKey; ChannelDAL channelDAL = new ChannelDAL(); if (!channelDAL.CheckChannelNameExist(channelName)) { throw new Exception("Channel Name does not exist"); } AddConnectionShutdownHandler(this.ConnectionShutdown); SetMessagePersitent(messagePersistent); try { var channel = GetChannel(); //channel.ExchangeDeclare(_exchangeName, ExchangeType.Direct); CloseChannel(channel); } catch (Exception exception) { Logger.Error("Init producer error", exception); AsyncWaitAndReInitialize(); } }
public static int ChannelIDSelByAbbre(string sAbbre) { return(ChannelDAL.ChannelIDSelByAbbre(sAbbre)); }
public static decimal FeeScaleSel(string sAbbre) { return(ChannelDAL.FeeScaleSel(sAbbre)); }
public static decimal FeeScaleSelByID(int channelid) { return(ChannelDAL.FeeScaleSelByID(channelid)); }