Modern C# native async API #1614
-
I have read (#83 (comment)) that v7 will implement brand new API which would rely on TPL. So my assumption was that it will provide an interface with a method which allows to retrieve a message from a queue |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
v7 does provide a task-based API that is mostly 1:1 compatible with the version 6.x API. If you wish to see how this code works, look at the test suite or example programs. If you wish to use an even simpler API, I suggest looking at EasyNetQ, MassTransit, or NServiceBus. At some point those libraries will use version 7 of this one.
If the above were in the API, how would you consume multiple messages? In a loop? I don't really see how that is an improvement over the current API, to be honest. |
Beta Was this translation helpful? Give feedback.
v7 does provide a task-based API that is mostly 1:1 compatible with the version 6.x API. If you wish to see how this code works, look at the test suite or example programs.
If you wish to use an even simpler API, I suggest looking at EasyNetQ, MassTransit, or NServiceBus. At some point those libraries will use version 7 of this one.
If the above were in the API, how would you consume multiple messages? In a loop? I don't really see how that is an improvement over the current API, to be honest.