ModernUO/.github/workflows
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
..
build-test.yml feat: Adds scheduler with wallclock timer (#2163) 2025-04-26 22:27:08 -07:00
code_quality.yml fix: Changes EventScheduler API so it is more explicit (#2164) 2025-04-28 16:16:33 -07:00
create-release.yml feat: Updates to .NET 9 (#1984) 2024-12-08 10:16:34 -08:00
post-release-discord.yml chore(build): Fixes release workflow (#1807) 2024-05-30 23:38:47 -07:00
update-docs.yml fix: Adds command help, webpage, and fixes issues with other commands (#1669) 2024-02-10 00:19:19 -08:00