Skip to content

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

@jasonshave

Description

@jasonshave

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions