Skip to content

Add DispatchConsumersAsyncEnabled property on IConnection (#1611)#1615

Merged
lukebakken merged 1 commit intomainfrom
rabbitmq-dotnet-client-1611-followup
Jun 27, 2024
Merged

Add DispatchConsumersAsyncEnabled property on IConnection (#1611)#1615
lukebakken merged 1 commit intomainfrom
rabbitmq-dotnet-client-1611-followup

Conversation

@lukebakken
Copy link
Collaborator

@lukebakken lukebakken commented Jun 27, 2024

  • Name new property DispatchConsumersAsyncEnabled.
  • Add a check on BasicConsume for when a regular dispatcher is used, and an async consumer passed.
  • Test the new DispatchConsumersAsyncEnabled property.

Follow-up to #1611
Fixes #1610

* Name new property `DispatchConsumersAsyncEnabled`. * Add a check on `BasicConsume` for when a regular dispatcher is used, and an async consumer passed. * Test the new `DispatchConsumersAsyncEnabled` property.
@lukebakken
Copy link
Collaborator Author

@luizcarlosfaria this API change will be available in version 7. Thanks!

@niemyjski
Copy link

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? 
@lukebakken
Copy link
Collaborator Author

@niemyjski would you mind starting a new discussion, or asking in this one, so other people can more easily find my response?

#1720

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants