We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please, can you add async APIs for serialization/deserialization?
For now I have solved it myself inheriting from the class for my specific case:
public class Gpx11SerializerAsync : Gpx11Serializer { public async Task<GpsData> DeserializeAsync(Stream stream) { using (var streamReader = new StreamReader(stream)) { var data = await streamReader.ReadToEndAsync(); var xmlSerializer = new XmlSerializer(typeof(GpxFile)); using (var stringReader = new StringReader(data)) { var doc = (GpxFile)xmlSerializer.Deserialize(stringReader); return DeSerialize(doc); } } } }
It would be nice if it worked in all cases through GpsData:
https://github.com/sibartlett/Geo/blob/master/Geo/Gps/GpsData.cs#L73
Something like:
public static async Task<GpsData> ParseAsync(Stream stream);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Please, can you add async APIs for serialization/deserialization?
For now I have solved it myself inheriting from the class for my specific case:
It would be nice if it worked in all cases through GpsData:
https://github.com/sibartlett/Geo/blob/master/Geo/Gps/GpsData.cs#L73
Something like:
The text was updated successfully, but these errors were encountered: