Open NxSoftware opened 4 years ago
Hi,
I think it would fit to create a ParseAsync() method.
If you want to do it yourself and submit a patch it is most welcome, if not I will need some time to check it.
Cool, I'll try and get round to having a look at this some time this week or next.
First of all, great work on this library!
We're using it in an ASP.NET Core 3.x web application to parse the plist data in the request body, unfortunately as of 3.0 by default the server is configured to disallow synchronous IO operations.
This results in an
InvalidOperationException
from within theHttpRequestStream
when attempting to copy it's contents to aMemoryStream
.We are currently working around this by allowing synchronous IO but it seems that the preferred approach is to update the code & libraries to use async stream operations.
I realise this is likely a non-trivial change in the plist-cil code but curious to hear your thoughts about this.