Migration Guide? #1720
Replies: 7 comments 12 replies
-
Hello, thanks for your interest. As of now, the best examples are the demo applications and test suites. I'm in the process of updating the tutorial code as well as the tutorials on the website. In short, though, these are the main changes:
|
Beta Was this translation helpful? Give feedback.
-
@Duncanduncability - I just finished updating and merging the tutorial code - https://github.com/rabbitmq/rabbitmq-tutorials/tree/main/dotnet |
Beta Was this translation helpful? Give feedback.
-
The other change worth mentioning in the migration guide is when you used This change was introduced in #1687. |
Beta Was this translation helpful? Give feedback.
-
I am trying to update our tests that uses Moq, Xunit and FluentAssertions, but QueueDeclareAsync is now an IChannel extension method which makes it more difficult to mock. Was this by intention?
Which results in
|
Beta Was this translation helpful? Give feedback.
-
@Duncanduncability the migration guide you can find here https://github.com/rabbitmq/rabbitmq-dotnet-client/blob/main/v7-MIGRATION.md |
Beta Was this translation helpful? Give feedback.
-
It is also not clear how to replace IModel.WaitForConfirmsOrDie with provided timeout. Should it be set to IChannel.ContinuationTimeout or is it a different thing? I found here #1234 (comment) only encougare to replace IModel.WaitForConfirmsOrDie with publisher confirms but its documentation does not mention about the timeout. |
Beta Was this translation helpful? Give feedback.
-
This change is kind of confusing looking at the 7.0 breaking changes. _factory = new ConnectionFactory
{
Uri = new Uri(options.ConnectionString),
AutomaticRecoveryEnabled = true,
DispatchConsumersAsync = true
}; DispatchConsumersAsync where did this get moved to now? |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm looking for advice for how to migrate from v6.8.1 to the new v7. Any idea when new docs and examples will be available?
Beta Was this translation helpful? Give feedback.
All reactions