예제 #1
0
 public QueueHost GetRoutHost()
 {
     if (Mode == CoverMode.Rout)
     {
         if (TargetPath == null || TargetPath == "")
         {
             return(null);
         }
         return(QueueHost.Parse(TargetPath));
     }
     return(null);
 }
예제 #2
0
        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
            });
        }