-
Notifications
You must be signed in to change notification settings - Fork 7
Upgrade to .NET 8, async RabbitMQ, and modern C# features #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AngeloDotNet
wants to merge
5
commits into
marcominerva:master
Choose a base branch
from
AngeloDotNet:migrate-NET8
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
marcominerva
requested changes
Dec 18, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
marcominerva
requested changes
Dec 18, 2025
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.
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @marcominerva with this PR I have:
Next step in the next few days is the migration of the solution to .NET 10