[Bug]: RestService cannot load Refit Interface from a class loaded by CompositionContainer.ComposeParts()
tzraeq opened this issue · comments
tzraeq commented
Describe the bug 🐞
I have a library project, it depends on the Refit 7.0.0, and it call RestService.For() in its init method.
My application load this library by CompositionContainer.ComposeParts(),but I got the "XXX doesn't look like a Refit interface. Make sure it has at least one method with a Refit HTTP method attribute and Refit is installed in the project" exception.
Step to reproduce
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Reproduction repository
https://github.com/reactiveui/refit
Expected behavior
This should happen...
Screenshots 🖼️
No response
IDE
Visual Studio 2022
Operating system
Windows
Version
10
Device
PC
Refit Version
7.0.0
Additional information ℹ️
No response