public EndpointsController()
 {
     _serverCurrentInfoDictionaryGetter = new ServerCurrentInfoDictionaryDictionaryGetter();
     _serverGetter             = new ServerGetter();
     _serverCurrentInfoAdapter = new ServerCurrentInfoAdapter();
     _steamBotMessageSender    = new SteamBotMessageSender(ConfigurationManager.ConnectionStrings["Data"].ConnectionString);
 }
Exemplo n.º 2
0
 public BucketsController()
 {
     _bucketsGetter = new BucketsGetter(ConfigurationManager.ConnectionStrings["Data"].ConnectionString);
     _bucketAdapter = new BucketAdapter();
     _serverCurrentInfoDictionaryGetter = new ServerCurrentInfoDictionaryDictionaryGetter();
     _serverGetter               = new ServerGetter();
     _bucketsPlayerAdder         = new BucketsPlayerAdder(ConfigurationManager.ConnectionStrings["Data"].ConnectionString);
     _bucketsPlayerRemover       = new BucketsPlayerRemover(ConfigurationManager.ConnectionStrings["Data"].ConnectionString);
     _bucketNamePlayerAddActions = new Dictionary <string, Action <IBucketPlayer> >
     {
         { "Commanders", player => _bucketsPlayerAdder.AddCommander(player) },
         { "BestPlayers", player => _bucketsPlayerAdder.AddBestPlayer(player) },
         { "BetterPlayers", player => _bucketsPlayerAdder.AddBetterPlayer(player) },
         { "GoodPlayers", player => _bucketsPlayerAdder.AddGoodPlayer(player) }
     };
     _bucketNamePlayerRemoveActions = new Dictionary <string, Action <long> >
     {
         { "Commanders", playerId => _bucketsPlayerRemover.RemoveCommander(playerId) },
         { "BestPlayers", playerId => _bucketsPlayerRemover.RemoveBestPlayer(playerId) },
         { "BetterPlayers", playerId => _bucketsPlayerRemover.RemoveBetterPlayer(playerId) },
         { "GoodPlayers", playerId => _bucketsPlayerRemover.RemoveGoodPlayer(playerId) }
     };
     _recentPlayersGetter      = new RecentPlayersGetter(ConfigurationManager.ConnectionStrings["Data"].ConnectionString);
     _serverCurrentInfoAdapter = new ServerCurrentInfoAdapter();
 }
Exemplo n.º 3
0
 public AuthenticatedController()
 {
     //_playerIdGetter = new PlayerIdGetter(ConfigurationManager.ConnectionStrings["Data"].ConnectionString);
     _bansGetter    = new BansGetter(ConfigurationManager.ConnectionStrings["Data"].ConnectionString);
     _accessAuditer = new AccessAuditer(ConfigurationManager.ConnectionStrings["Data"].ConnectionString);
     _serverGetter  = new ServerGetter();
     _serverCurrentInfoDictionaryGetter = new ServerCurrentInfoDictionaryDictionaryGetter();
     _serverCurrentInfoAdapter          = new ServerCurrentInfoAdapter();
 }
Exemplo n.º 4
0
 public ServerInfoController()
 {
     _serverGetter = new ServerGetter();
     _serverCurrentInfoDictionaryGetter = new ServerCurrentInfoDictionaryDictionaryGetter();
     _serverCurrentInfoAdapter          = new ServerCurrentInfoAdapter();
 }
Exemplo n.º 5
0
 public CrashController()
 {
     _serverAdminCommandSender          = new ServerAdminCommandSender();
     _serverCurrentInfoDictionaryGetter = new ServerCurrentInfoDictionaryDictionaryGetter();
     _serverCurrentInfoAdapter          = new ServerCurrentInfoAdapter();
 }