4 ms·
I had some trouble using ReadOnlySequence in a library I am writing (mostly because of no documentation). After looking through how Kestrel uses it(they started
by steveadoo 8y ago
I had some trouble using ReadOnlySequence in a library I am writing (mostly because of no documentation). After looking through how Kestrel uses it(they started using Pipelines in ASP.NET Core 2.1) I found their BufferReader[1] class. It made using ReadOnlySequence much easier.
Overall, pipelines have been really solid for me so far. Working out how to use it without documentation was a total pain though, hopefully they get that out soon. If anyone is interested I can throw the library up on GitHub if anyone wants some real world examples of using pipelines.
[1] https://github.com/aspnet/Common/blob/master/shared/Microsoft.Extensions.Buffers.Sources/BufferReader.cs https://github.com/aspnet/Common/blob/master/shared/Microsof...
- Haldir 8y agohttps://www.codemag.com/Article/1807051/Introducing-.NET-Core-2.1-Flagship-Types-Span-T-and-Memory-T https://www.codemag.com/Article/1807051/Introducing-.NET-Cor... might help with Readonlysequence too