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

Error: Detected some kind of bi-directional dependency while trying to discover and plan a missing service registration #394

Open
jasonshave opened this issue Jan 23, 2024 · 2 comments

Comments

@jasonshave
Copy link

Describe the bug
When I set up a minimal API to receive an Azure.Messaging.CloudEvent in my minimal API with Wolverine enabled, I get the exception on startup:

Detected some kind of bi-directional dependency while trying to discover and plan a missing service registration

To Reproduce
Steps to reproduce the behavior:

  1. Install NuGet for Azure.Messaging with a .NET 7/8 web api project
  2. Install Wolverine and add the basic builder.Host.UseWolverine();
  3. Create a MapPost endpoint with the following signature:

app.MapPost("/api/callbacks", (CloudEvent[] events) =>{});

  1. Run the app and observe the exception

Expected behavior
The web app should load correctly. If I remove the Wolverine statement it starts up no problem.

Desktop (please complete the following information):

  • OS: Windows 11
@jeremydmiller
Copy link
Member

Answering on discord

@jeremydmiller
Copy link
Member

I think this is a Lamar thing, and I'm moving this there. I also know what the fix is.

But I'm blaming the ASP.Net Core team anyway:)

@jeremydmiller jeremydmiller transferred this issue from JasperFx/wolverine Jan 23, 2024
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

No branches or pull requests

2 participants