Esempio n. 1
0
        public static bool TryParse(string address, out Topic topic)
        {
            topic = null;

            if (string.IsNullOrEmpty(address))
            {
                return false;
            }

            if (address.StartsWith(Schema, StringComparison.InvariantCultureIgnoreCase))
            {
                topic = new Topic(address);
                return true;
            }

            return false;
        }
Esempio n. 2
0
 public Broker Register(MessageUnit unit, Topic topic)
 {
     return Register(unit, (Address) topic);
 }