예제 #1
0
        public TransportNode(ChannelGraph graph)
        {
            NodeName = graph.Name;

            Addresses = graph.ReplyUriList().ToArray();

            if (!Addresses.Any())
            {
                throw new InvalidOperationException("At least one reply channel is required");
            }

            MachineName = System.Environment.MachineName;
            Id = graph.NodeId;
        }
예제 #2
0
        public TransportNode(ChannelGraph graph)
        {
            NodeName = graph.Name;


            Addresses = graph.ReplyUriList().ToArray();

            if (!Addresses.Any())
            {
                throw new InvalidOperationException("At least one reply channel is required");
            }

            MachineName = System.Environment.MachineName;
            Id          = graph.NodeId;
        }
 public TransportNode(ChannelGraph graph)
 {
     NodeName = graph.Name;
     Addresses = graph.ReplyUriList().ToArray();
     MachineName = Environment.MachineName;
 }