Open
Conversation
added 3 commits
May 17, 2018 21:25
Owner
|
Thanks for your pull request. Apologies for the delay. I noticed that in class CsvContext, there is no #if NETSTANDARD to define an async version of the ReadData method, even though in the body there is #if NETSTANDARD to await an async method. To be honest, I'm not a big fan of coupling the framework (net45 or NETSTANDARD) to the use of async methods. On the other hand, I can see the benefits of async methods. But a lot of code out there is not async and would need a lot of work to make async. So that is a bit of a dilemma. You may have noticed that I've been neglecting this project for a long time. But your pull request got me thinking of introducing a version 2 which would have these breaking changes:
|
Author
|
I made the changes because I needed to use the functionality in an aspnet core application....
By adding the async methods when reading a large csv file helped to ensure that
1. Operations were not in the main thread
2. Sped up the reading of the file (especially larger ones)
Most users who use netstandard are well versed in async operations. While it’s not used as much in classic sorbet. That’s why I made the project compile both. So in the nuget, you will have two binaries.
1. Classic .net w/o the async operations
2. Netstandard that has it.
So existing users wouldn’t have a breaking change.
…Sent from my iPhone
On May 26, 2018, at 10:28 AM, mperdeck ***@***.***> wrote:
Thanks for your pull request. Apologies for the delay.
I noticed that in class CsvContext, there is no #if NETSTANDARD to define an async version of the ReadData method, even though in the body there is #if NETSTANDARD to await an async method.
To be honest, I'm not a big fan of coupling the framework (net45 or NETSTANDARD) to the use of async methods. On the other hand, I can see the benefits of async methods. But a lot of code out there is not async and would need a lot of work to make async. So that is a bit of a dilemma.
You may have noticed that I've been neglecting this project for a long time. But your pull request got me thinking of introducing a version 2 which would have these breaking changes:
minimum framework is net45 (dropping net35) or NETSTANDARD;
all methods are async;
replacing column attributes with counterparts from the System.ComponentModel.DataAnnotations namespace;
its own site with Github Pages.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migration of codebase to NETStandard 2.0. With some efficency improvements made for file reading and writing to take advantage of the framework