Skip to content

Modern C# native async API #1614

Closed Locked Answered by lukebakken
Gladskih asked this question in Q&A
Jun 25, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

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.

var message = await _consumer.Consume(cancellationToken)

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.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Gladskih
Comment options

@lukebakken
Comment options

@Gladskih
Comment options

@lukebakken
Comment options

@michaelklishin
Comment options

Answer selected by lukebakken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants