Пример #1
0
        public INetStreamConfigurationContext AddTopicConfiguration(Action <ITopicConfiguration> cfg)
        {
            TopicCreationEnabled = true;
            var topicConfig = new TopicConfiguration();

            cfg(topicConfig);
            TopicConfigurations.Add(topicConfig);
            return(this);
        }
Пример #2
0
        public INetStreamConfigurationBuilderContext <TKey, TMessage> AddTopicConfiguration(Action <ITopicConfiguration> cfg)
        {
            TopicCreationEnabled = true;
            var topicConfig = new TopicConfiguration();

            cfg(topicConfig);
            TopicConfigurations.Add(topicConfig);
            return(this);
        }