ModernUO/Projects/Server/Utilities
Kamron Batman 21a4092dd8
fix: Changes EventScheduler API so it is more explicit (#2164)
### Summary

Refactors ScheduledEvent and EventScheduler API to use TimeOnly so recurrence offset is explicit.

API:

```cs
public ScheduledEvent(
    DateTime startAfter,
    DateTime endOn,
    TimeOnly time,
    IRecurrencePattern recurrence,
    TimeZoneInfo timeZone = null
)
```

Example:
```cs
// Schedule a daily event at 8:00 AM UTC
EventScheduler.DailyAt(
    new DateTime(2024, 6, 1, 8, 0, 0, DateTimeKind.Utc),
    () => Console.WriteLine("Daily event triggered!")
);

// Schedule a custom recurring event at 3:30 PM UTC every Monday
var recurrence = new WeeklyRecurrencePattern(1, DaysOfWeek.Monday);
EventScheduler.Shared.ScheduleEvent(
    DateTime.UtcNow,
    new TimeOnly(15, 30),
    () => Console.WriteLine("Weekly Monday event!"),
    recurrence
);
```
2025-04-28 16:16:33 -07:00
..
ActivatorExtensions.cs fix: Fixes duping containers and removes copying private setter properties (#1816) 2024-06-03 15:44:56 -07:00
EntityActivatorExtensions.cs fix: Consolidates Color/Center html (#1762) 2024-05-07 23:56:32 -07:00
HashUtility.cs feat: Updates to .NET 9 (#1984) 2024-12-08 10:16:34 -08:00
Html.cs feat: Adds convenience methods to GumpStringsBuilder (#2124) 2025-02-13 19:58:46 -08:00
PathUtility.cs fix: Fixes directory copying (#1668) 2024-02-09 23:25:20 -08:00
Utility.cs fix: Changes EventScheduler API so it is more explicit (#2164) 2025-04-28 16:16:33 -07:00