Example #1
0
        private static void Main(string[] args)
        {
            Log.Logger = new LoggerConfiguration()
                         .WriteTo.File("update.log")
                         .CreateLogger();

            var total = new Result(EmptyArgs.Create(), RunnerType.Full, "");

            //var stats = new SpanStatsSaver();

            //var shit = stats.GetSpanList(10787777);


            //
            //LeaguesRunner.Run(total);
            ////
            //SeasonsRunner.Run(total);
            ////
            //StageTeamGameRunner.Run(total);
            //
            DayStatsRunner.Run(total);

            //GameStatsRunner.Run(total);

            Console.WriteLine("END!!!");

            Console.ReadLine();
        }
Example #2
0
 public bool AllDependenciesAreSatisfiedForTheFeatureSetting(
     FeatureSetting <TFeatureEnum, DefaultTenantEnum> f,
     EmptyArgs availabilityCheckArgs)
 {
     return(_featureSettingAvailabilityChecker.RecursivelyCheckAvailability(f,
                                                                            _featureSettingRepository
                                                                            .GetFeatureSettings(),
                                                                            availabilityCheckArgs));
 }
Example #3
0
        protected override async Task ProcessAsync(EmptyArgs args, Result result)
        {
            var fetch = (await GetAsync("Sport/3/Category?ln=ru"))
                        .SelectMany(x => x.Countries)
                        .ToList();

            if (fetch.Count > 0)
            {
                _db.CountryRepository.AddOrUpdate_Countries(
                    fetch,
                    out var countriesInserted,
                    out var countriesUpdated);

                result.CountriesInserted = countriesInserted;
                result.CountriesUpdated  = countriesUpdated;
            }
        }
Example #4
0
 protected StageTeamGameRunner(Result total = null) : base(total)
 {
     _total = total ?? new Result(EmptyArgs.Create(), RunnerType.Seasons);
 }
Example #5
0
 protected LeaguesRunner(Result total = null) : base(total)
 {
     _total = total ?? new Result(EmptyArgs.Create(), RunnerType.Leagues);
 }
 /// <summary>
 /// 	A function to test the availability checking behavior.
 /// </summary>
 private static bool MyAvailabilityCheckFunction(FeatureSetting<Feature, DefaultTenantEnum> s, EmptyArgs args)
 {
     Func<bool> f = () => true;
     return Enum.GetName(typeof (Feature), s.Feature) == "NDecorate";
 }
Example #7
0
 public override async Task RunAsync()
 {
     _totalSteps = 1;
     await Round(EmptyArgs.Create());
 }
 /// <summary>
 ///     A function to test the availability checking behavior.
 /// </summary>
 private static bool MyAvailabilityCheckFunction(FeatureSetting <Feature, Tenant> s,
                                                 EmptyArgs args)
 {
     return(Enum.GetName(typeof(Feature), s.Feature) == "TestFeatureE");
 }
		/// <summary>
		/// 	A function to test the availability checking behavior.
		/// </summary>
		private static bool MyAvailabilityCheckFunction(FeatureSetting<Feature, DefaultTenantEnum> s,
		                                                EmptyArgs args) {
			return Enum.GetName(typeof (Feature), s.Feature) == "TestFeatureE";
		}
 private void OnRefresh(EmptyArgs args)
 {
     OnRequestShow();
 }
 private void OnClearAll(EmptyArgs args)
 {
     UpdateNotificationCollection((collection, a) => collection.Clear(), args);
 }