Exemplo n.º 1
0
        public void OpenChannels(ChannelGraph graph)
        {
            var nodes = graph.NodesForProtocol(Protocol).ToArray();

            if (Disabled(nodes)) return;

            nodes.OrderByDescending(x => x.Incoming).Each(x => x.Channel = buildChannel(x));
            seedQueues(nodes);

            graph.AddReplyChannel(Protocol, getReplyUri(graph));
        }
Exemplo n.º 2
0
        public void OpenChannels(ChannelGraph graph)
        {
            var nodes = graph.NodesForProtocol(Protocol).ToArray();

            if (Disabled(nodes))
            {
                return;
            }

            nodes.OrderByDescending(x => x.Incoming).Each(x => x.Channel = buildChannel(x));
            seedQueues(nodes);

            graph.AddReplyChannel(Protocol, getReplyUri(graph));
        }