diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-09-22 17:13:41 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-09-22 17:13:41 -0500 |
| commit | 5df5d3378d757868ff3ccc7ada65de15ed7c9794 (patch) | |
| tree | 97718e31e7b0063f7e58dde0376a15badaaa5b8e /src/slskd/Events | |
| parent | cc0c9ee32b87b2d2937fce90a55afb7f875b315e (diff) | |
| download | slskd-5df5d3378d757868ff3ccc7ada65de15ed7c9794.tar.gz | |
keep tweaking the Get
Diffstat (limited to 'src/slskd/Events')
| -rw-r--r-- | src/slskd/Events/EventService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Events/EventService.cs b/src/slskd/Events/EventService.cs index 7a70cf05..0406f83d 100644 --- a/src/slskd/Events/EventService.cs +++ b/src/slskd/Events/EventService.cs @@ -41,14 +41,14 @@ public class EventService private ILogger Log { get; } = Serilog.Log.ForContext<EventService>(); /// <summary> - /// Gets a paginated list of events. + /// Gets list of events, optionally applying the specified <paramref name="offset"/> and <paramref name="limit"/>. /// </summary> /// <param name="offset">The beginning offset for the page.</param> /// <param name="limit">The page size limit.</param> /// <returns>The retrieved list.</returns> /// <exception cref="ArgumentOutOfRangeException">Thrown when the specified <paramref name="offset"/> is less than zero.</exception> /// <exception cref="ArgumentOutOfRangeException">Thrown when the specified <paramref name="limit"/> is zero.</exception> - public virtual IReadOnlyCollection<EventRecord> GetPage(int offset = 0, int limit = 100) + public virtual IReadOnlyCollection<EventRecord> Get(int offset = 0, int limit = int.MaxValue) { if (offset < 0) { |
