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; }