public void Publishes([SelectionList("Channels")] string Channel, [SelectionList("Messages")] string Message) { _registry.AlterSettings <ChannelGraph>(graph => { var prop = ServiceBusNodes.Channels.First(x => x.Name == Channel); var channel = graph.ChannelFor(new SingleProperty(prop)); var messageType = ServiceBusNodes.FindMessageType(Message); channel.Rules.Add(new LambdaRoutingRule(type => type == messageType)); }); }
public void Replies([SelectionList("Messages")] string Message, [SelectionList("Messages")] string Reply) { _registry.AddReply(ServiceBusNodes.FindMessageType(Message), ServiceBusNodes.FindMessageType(Reply)); }