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)); }
internal ITopic GetTopic(string topicName, bool flag) { TopicIdentity topicPair = new TopicIdentity(topicName, TopicSearchOptions.ByName); return(PubSubManager.GetOrCreateTopic(topicPair, TopicOperationType.Get, flag)); }