You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using Shadowsocks.Controller;
- using System;
- using System.Collections.Generic;
- using System.Text;
-
- namespace Shadowsocks.Controller.Strategy
- {
- class StrategyManager
- {
- List<IStrategy> _strategies;
- public StrategyManager(ShadowsocksController controller)
- {
- _strategies = new List<IStrategy>();
- _strategies.Add(new BalancingStrategy(controller));
- _strategies.Add(new HighAvailabilityStrategy(controller));
- _strategies.Add(new SimplyChooseByStatisticsStrategy(controller));
- // TODO: load DLL plugins
- }
- public IList<IStrategy> GetStrategies()
- {
- return _strategies;
- }
- }
- }
|