Created
February 25, 2013 12:56
-
-
Save andreasohlund/5029646 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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