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(); }
public bool AllDependenciesAreSatisfiedForTheFeatureSetting( FeatureSetting <TFeatureEnum, DefaultTenantEnum> f, EmptyArgs availabilityCheckArgs) { return(_featureSettingAvailabilityChecker.RecursivelyCheckAvailability(f, _featureSettingRepository .GetFeatureSettings(), availabilityCheckArgs)); }
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; } }
protected StageTeamGameRunner(Result total = null) : base(total) { _total = total ?? new Result(EmptyArgs.Create(), RunnerType.Seasons); }
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"; }
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); }