public IMessageBus CreateMessageBus() { if (this._bus == null) { if (this._sender == null) { try { this._queueName = ConfigurationManager.AppSettings[_configKeyMQ].ToString(); } catch (Exception) { throw new Exception("StarChef: Cannot find MSMQ configuration. Key " + _configKeyMQ + " is missing from web.config file."); } this._sender = new MsmqSender(this._queueName); } this._bus = new MsmqMessageBus(this._sender); } return(_bus); }
public MsmqMessageBus(IMsmqSender sender) { this.sender = sender; }
public MsmqMessagingFactory(IMsmqSender sender) { this._sender = sender; }