Exemple #1
0
        public Worker(IGlobalHandler globalHandler, StatisticsService statisticsService, EngineRegionProfile regionProfile, Configuration configuration, Database provider)
        {
            Running = false;

            GlobalHandler = globalHandler;
            StatisticsService = statisticsService;
            Provider = provider;

            Configuration = configuration;
            Profile = regionProfile;

            AutomaticUpdatesThread = null;
            MassiveSummonerLookupThread = null;

            Connected = false;

            Profiler = new Profiler();
            ActiveAccountIds = new HashSet<int>();

            Region = (RegionType)Profile.Identifier;

            AutomaticUpdateInterval = configuration.AutomaticUpdateInterval;

            InitialiseAuthenticationProfile();
        }
Exemple #2
0
        public Worker(IGlobalHandler globalHandler, StatisticsService statisticsService, EngineRegionProfile regionProfile, Configuration configuration, Database provider)
        {
            Running = false;

            GlobalHandler     = globalHandler;
            StatisticsService = statisticsService;
            Provider          = provider;

            Configuration = configuration;
            Profile       = regionProfile;

            AutomaticUpdatesThread = null;

            Connected = false;

            Profiler         = new Profiler();
            ActiveAccountIds = new HashSet <int>();

            Region = (RegionType)Profile.Identifier;

            AutomaticUpdateInterval = configuration.AutomaticUpdateInterval;

            InitialiseAuthenticationProfile();
        }