public void PreventFuturePersistence(StoreNumber storeNumber) => _cacheWithExpiration.Add(storeNumber.ToString(), _expirationMs);
Example #2
0
 /// <summary>
 /// Returns a <see cref="System.String" /> that represents this instance.
 /// </summary>
 /// <returns>
 /// A <see cref="System.String" /> that represents this instance.
 /// </returns>
 public override string ToString()
 {
     return(StoreNumber.ToString());
 }
 public bool WasPersistedRecently(StoreNumber storeNumber) => _cacheWithExpiration.Contains(storeNumber.ToString());