.NET API
RunScoreBucketing
Namespace Tracon · Assembly
Tracon.Abstractions.dllShared pure logic for score trend bucket truncation (RunScoreBucket).
public static class RunScoreBucketingInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Used by InMemoryRunScoreStore directly; each SQL provider mirrors the
same rule in its own date-truncation SQL, so the bucket boundary never
diverges between implementations — a shared contract test checks this
across all four.
Methods
Section titled “Methods”Truncate(DateTimeOffset, RunScoreBucket)
Section titled “ Truncate(DateTimeOffset, RunScoreBucket)”Rounds a timestamp down to its bucket boundary, in UTC.
public static DateTimeOffset Truncate(DateTimeOffset value, RunScoreBucket bucket)Parameters
Section titled “Parameters”value DateTimeOffset
The timestamp to round down.
bucket RunScoreBucket
The bucket width.
Returns
Section titled “Returns”The bucket’s start (UTC). A RunScoreBucket.Week bucket starts on Monday (ISO 8601).