Skip to content

Instantly share code, notes, and snippets.

@andreasohlund
Created February 25, 2013 12:56
Show Gist options
  • Select an option

  • Save andreasohlund/5029646 to your computer and use it in GitHub Desktop.

Select an option

Save andreasohlund/5029646 to your computer and use it in GitHub Desktop.
//define new convention
Configure.Conventions.RabbitMq(c => c.ExchangeNameForPubSub((a, t) => a.Queue));
//create the exchanges as needed
public class ExchangeInstaller:INeedToInstallSomething<Windows>
{
public IManageRabbitMqConnections ConnectionManager { get; set; }
public void Install(string identity)
{
using (var channel = ConnectionManager.GetConnection(ConnectionPurpose.Administration, "create exchange").CreateModel())
{
channel.ExchangeDeclare(Address.Local.Queue,"topic",true);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment