This commit is contained in:
Archi 2023-10-02 20:37:25 +02:00
parent 3eb6cbf491
commit 57cb519c44
No known key found for this signature in database
GPG key ID: 6B138B4C64555AEA
2 changed files with 1 additions and 10 deletions

View file

@ -113,15 +113,6 @@ public sealed class ObservableConcurrentDictionary<TKey, TValue> : IDictionary<T
bool IReadOnlyDictionary<TKey, TValue>.TryGetValue(TKey key, out TValue value) => BackingDictionary.TryGetValue(key, out value!);
bool IDictionary<TKey, TValue>.TryGetValue(TKey key, out TValue value) => BackingDictionary.TryGetValue(key, out value!);
[PublicAPI]
public TValue AddOrUpdate(TKey key, TValue addValue, Func<TKey, TValue, TValue> updateValueFactory) {
TValue result = BackingDictionary.AddOrUpdate(key, addValue, updateValueFactory);
OnModified?.Invoke(this, EventArgs.Empty);
return result;
}
[PublicAPI]
public bool TryAdd(TKey key, TValue value) {
if (!BackingDictionary.TryAdd(key, value)) {

View file

@ -49,7 +49,7 @@ public sealed class CardsFarmer : IAsyncDisposable, IDisposable {
internal const byte DaysForRefund = 14; // In how many days since payment we're allowed to refund
internal const byte HoursForRefund = 2; // Up to how many hours we're allowed to play for refund
private const byte DaysToIgnoreRiskyAppIDs = 7; // How many days since determining that game is not candidate for idling, we assume that to still be the case, in risky approach
private const byte DaysToIgnoreRiskyAppIDs = 14; // How many days since determining that game is not candidate for idling, we assume that to still be the case, in risky approach
private const byte ExtraFarmingDelaySeconds = 10; // In seconds, how much time to add on top of FarmingDelay (helps fighting misc time differences of Steam network)
private const byte HoursToIgnore = 1; // How many hours we ignore unreleased appIDs and don't bother checking them again