Skip to content

Commit

Permalink
Remove UpdateCacheDuration as it is protected in an abstract class.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenTCramer committed Aug 22, 2024
1 parent 6789676 commit fcf2c87
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Source/TimeWarp.State.Plus/State/TimeWarpCacheableState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,4 @@ protected void InvalidateCache()
CacheKey = null;
TimeStamp = null;
}

protected void UpdateCacheDuration(TimeSpan newDuration)
{
if (newDuration < TimeSpan.Zero)
{
throw new ArgumentException("Cache duration cannot be negative", nameof(newDuration));
}
CacheDuration = newDuration;
}
}

0 comments on commit fcf2c87

Please sign in to comment.