Пример #1
0
        private MessageRoute createLocalRoute(Type messageType)
        {
            var destination = _workers.LoopbackUriFor(messageType);
            var route       = new MessageRoute(messageType, destination, "application/json")
            {
                Subscriber = _subscribers.GetOrBuild(destination)
            };

            return(route);
        }
Пример #2
0
 public void select_the_loopback_uri_for_message_type(Type messageType, string uriString)
 {
     theWorkers.LoopbackUriFor(messageType).ShouldBe(uriString.ToUri());
 }