public QueueHost GetRoutHost() { if (Mode == CoverMode.Rout) { if (TargetPath == null || TargetPath == "") { return(null); } return(QueueHost.Parse(TargetPath)); } return(null); }
public static TopicSubscriber Create(string s, string topicId) { var qh = QueueHost.Parse(s); return(new TopicSubscriber() { Host = qh.HostAddress, Protocol = qh.NetProtocol, HostName = qh.HostName, TopicId = topicId, QHost = qh }); }