File tree Expand file tree Collapse file tree
src/content/docs/release-notes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,24 @@ import RN from '/src/components/ReleaseNote.astro';
77
88## v6
99
10+ ## 6.2.0 - TBD
11+ <RN type = " feature" >New Throttle attribute for event handler methods - ensures last event is delivered after X seconds</RN >
12+
13+ ``` csharp
14+ services .AddShinyMediator (x => x .AddThrottledEventHandlers ());
15+
16+ public class MyEventHandler : IEventHandler <MyEvent >
17+ {
18+ [Throttle (1000 )] // respresents milliseconds, so 1000 = 1 second
19+ public Task Handle (MyEvent myEvent , EventContext context )
20+ {
21+ // this will ensure that if multiple MyEvent are published within 5 seconds, only the last one will be delivered after the 5 seconds is up
22+ // if only one event is published, it will be delivered immediately
23+ // if multiple events are published, the timer resets with each new event and only the last event is delivered after 5 seconds of no new events
24+ }
25+ }
26+ ```
27+
1028## v6.1.3 - February 7, 2026
1129<RN type = " fix" >OpenAPI handler generation no longer uses C# required so that json converter generation is not broken</RN >
1230
You can’t perform that action at this time.
0 commit comments