Stock Sund

Stock Sund

  • NA
  • 2
  • 1.9k

How to configure and use Ocelot in .Net 6 ???

Feb 17 2022 3:29 PM

I created a Web Api project to use as gateway (Dotnet 6.0) and added Ocelot support to it. Now, I can route requests through Ocelot's Up/Down stream service (Json config file) but when I add a controller to the Web Api project, (Controller class extending ControllerBase), Ocelot will work but not the api controller. If I disable Ocelot on Program.c, then the api controller are back again.

I need both to be available, Ocelot routing and the project api controllers. Any ideas?


Answers (1)