Renamed to IsValueWithinLimits

This commit is contained in:
glax 2024-02-12 02:02:30 +01:00
parent bb8959160a
commit 171b057d58
2 changed files with 3 additions and 3 deletions

View File

@ -25,12 +25,12 @@ public abstract class Api : IDisposable
this.Logger?.Log(LogLevel.Information, "No action defined.");
enqueueItem = false;
}
if (!ValidIntensityRange.ValueWithinLimits(intensity))
if (!ValidIntensityRange.IsValueWithinLimits(intensity))
{
this.Logger?.Log(LogLevel.Information, $"Value not within allowed {nameof(intensity)}-Range ({ValidIntensityRange.RangeString()}): {intensity}");
enqueueItem = false;
}
if (!ValidDurationRange.ValueWithinLimits(duration))
if (!ValidDurationRange.IsValueWithinLimits(duration))
{
this.Logger?.Log(LogLevel.Information, $"Value not within allowed {nameof(duration)}-Range ({ValidIntensityRange.RangeString()}): {duration}");
enqueueItem = false;

View File

@ -11,7 +11,7 @@ public readonly struct IntegerRange
this.Max = max;
}
public bool ValueWithinLimits(int value)
public bool IsValueWithinLimits(int value)
{
return value >= this.Min && value <= this.Max;
}