예제 #1
0
        /// <summary>
        /// 创建拓扑配置
        /// </summary>
        /// <returns></returns>
        public ITopologyConfig CreateConfig(string name)
        {
            TopologyConfig config;

            if (!this.configs.TryGetValue(name, out config))
            {
                config = new TopologyConfig();
                this.configs.Add(name, config);
                return(config);
            }

            throw new ArgumentException(string.Format("已存在名为{0}的配置", name));
        }
예제 #2
0
 public TopologyLogic(TopologyConfig topologyConfig)
 {
     _topologyConfig = topologyConfig;
 }
예제 #3
0
 public TopologyCollection(TopologyConfig config)
 {
     this.queue  = new Queue <Topology>();
     this.config = config;
 }