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.

StrategyManager.cs 718 B

10 years ago
10 years ago
123456789101112131415161718192021222324
  1. using Shadowsocks.Controller;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace Shadowsocks.Controller.Strategy
  6. {
  7. class StrategyManager
  8. {
  9. List<IStrategy> _strategies;
  10. public StrategyManager(ShadowsocksController controller)
  11. {
  12. _strategies = new List<IStrategy>();
  13. _strategies.Add(new BalancingStrategy(controller));
  14. _strategies.Add(new HighAvailabilityStrategy(controller));
  15. _strategies.Add(new StatisticsStrategy(controller));
  16. // TODO: load DLL plugins
  17. }
  18. public IList<IStrategy> GetStrategies()
  19. {
  20. return _strategies;
  21. }
  22. }
  23. }