Ask a Question

swagger ui is not showing anything in webapi and Structuremap is blocking

prasadkanaparth
New Member

swagger ui is not showing anything in webapi and Structuremap is blocking

Hi Team,

 

I'm using structuremap for our webapi project. I'm facing exactly same issue as mentioned here.

However, The swagger UI is coming up if i comment below line in StructuremapWebApi.cs

GlobalConfiguration.Configuration.DependencyResolver = new StructureMapWebApiDependencyResolver(container);

But, The DI will not work if i comment above line. Is there any solution for this.

 

1 REPLY 1
RonRatovsky
Moderator

Unfortunately, I'm not sure we can help with that.

 

Swagger UI, as a set of static html/css/js files just 'works'. Any other product you use it within should just host it as the static files they are, while injecting the configuration in one of the available methods. We don't have any specific knowledge about structuremap to offer help with it directly.


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
cancel
Showing results for 
Search instead for 
Did you mean: