Esempio n. 1
0
        public ITopic CreateTopic(string topicName)
        {
            if (string.IsNullOrEmpty(topicName))
            {
                throw new ArgumentException("TopicName is null or empty string");
            }
            TopicIdentity topicPair = new TopicIdentity(topicName, TopicSearchOptions.ByName);

            return(PubSubManager.GetOrCreateTopic(topicPair, TopicOperationType.Create, false));
        }
Esempio n. 2
0
        internal ITopic GetTopic(string topicName, bool flag)
        {
            TopicIdentity topicPair = new TopicIdentity(topicName, TopicSearchOptions.ByName);

            return(PubSubManager.GetOrCreateTopic(topicPair, TopicOperationType.Get, flag));
        }