Skip to content

Conversation

@AngeloDotNet
Copy link

Hi @marcominerva with this PR I have:

  • Upgraded all projects to .NET 8 and updated NuGet packages for compatibility.
  • Refactored RabbitMQ integration to use new async APIs and modernized consumers.
  • Adopted C# 12 primary constructors in key classes and controllers, improved code style via enhanced .editorconfig, and ensured proper cancellation support.
  • Cleaned up codebase for clarity, maintainability, and alignment with current C#/.NET best practices.

Next step in the next few days is the migration of the solution to .NET 10

Upgraded all projects to .NET 8 and updated NuGet packages for compatibility. Refactored RabbitMQ integration to use new async APIs and modernized consumers. Adopted C# 12 primary constructors in key classes and controllers, improved code style via enhanced .editorconfig, and ensured proper cancellation support. Cleaned up codebase for clarity, maintainability, and alignment with current C#/.NET best practices.
Copilot AI review requested due to automatic review settings December 18, 2025 09:57

This comment was marked as duplicate.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Refactored MessageManager to use asynchronous initialization and disposal. Introduced a static CreateAsync factory method for async setup of RabbitMQ connections, channels, and queues. Replaced IDisposable with IAsyncDisposable and implemented DisposeAsync to properly await resource cleanup. All setup operations now use async/await for improved resource management and modern .NET practices.
@AngeloDotNet
Copy link
Author

@marcominerva I modified it as requested using IAsyncDisposable.

Changes included in the PR commit f83036a

Refactored the CreateAsync method to set the Connection property of MessageManager directly in the object initializer, removing the redundant assignment line. This improves code conciseness and readability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants