The API reference is generated from the net10.0 target, which exposes the full surface area of the library. However, the library is designed to be highly compatible across various .NET versions.
A small number of members are conditionally available or exhibit slightly different behaviors depending on the target framework you are using.
| Member | net10.0 |
net9.0 |
net8.0 |
netstandard2.0 |
|---|---|---|---|---|
SseSource.DisposeAsync() (IAsyncDisposable) |
✔ | ✔ | ✔ | ⚠️ Sync cancellation |
SseSource.StopAsync() |
✔ (Async cancel) | ✔ (Async cancel) | ✔ (Async cancel) | ⚠️ Sync fallback |
netstandard2.0 Synchronous FallbackWhen targeting netstandard2.0, both StopAsync() and DisposeAsync() fall back to synchronous cancellation.
CancellationTokenSource to signal the consumption loop to stop. On netstandard2.0 this is done via the synchronous CancellationTokenSource.Cancel() call because the native CancellationTokenSource.CancelAsync() method is not available on that specific target framework.