Skip to content
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

AssemblyScanner doesn't scan message assemblies that reference Message Interfaces #7091

Merged
merged 3 commits into from
Jul 2, 2024

Conversation

danielmarbach
Copy link
Contributor

@danielmarbach danielmarbach commented Jul 1, 2024

Backport of #7081 which fixes #7092 for the release-8.2 branch

…e Interfaces (#7081)

* Add a test to verify the messages referencing core are scanned

* Failing test for messages that reference message interfaces

* Unify in one test due avoid assembly loading issues

* Cleanup

* AssemblyScanner should scan assemblies that reference the message interfaces assembly to make sure messages using those interfaces can be discovered and do not act like unobtrusive messages

* Extract into method with a huge comment and inline hints

* Add a type forwarding test as a safety net

* Update src/NServiceBus.Core.Tests/AssemblyScanner/When_using_type_forwarding.cs

Co-authored-by: Phil Bastian <[email protected]>

* Apply suggestions from code review

Co-authored-by: Brandon Ording <[email protected]>

* string.Equals

Co-authored-by: Brandon Ording <[email protected]>

---------

Co-authored-by: danielmarbach <[email protected]>
Co-authored-by: Phil Bastian <[email protected]>
Co-authored-by: Brandon Ording <[email protected]>
(cherry picked from commit 3a7c74c)
@danielmarbach danielmarbach added this to the 8.2.2 milestone Jul 1, 2024
@danielmarbach danielmarbach merged commit 185957c into release-8.2 Jul 2, 2024
3 checks passed
@danielmarbach danielmarbach deleted the message-interfaces-r82 branch July 2, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants