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 652 B

10 years ago
1234567891011121314151617181920212223
  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. // TODO: load DLL plugins
  16. }
  17. public IList<IStrategy> GetStrategies()
  18. {
  19. return _strategies;
  20. }
  21. }
  22. }