aspnet / DependencyInjection

[Archived] Contains common DI abstractions that ASP.NET Core and Entity Framework Core use. Project moved to https://github.com/aspnet/Extensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve the circular dependency exception message

AndriySvyryd opened this issue · comments

Currently it says A circular dependency was detected for the service of type 'MyType'.

It should provide all types in the cycle.

You mean like this?

A circular dependency was detected for the service of type that has a circular dependency was detected for the service of type that has a circular dependency was detected for the service of type that has a circular dependency was detected for the service of type that has a circular dependency was detected for the service of type that has a circular dependency was detected for the service of type that has a circular dependency was detected for the service of type that has a circular dependency was detected for the service of type that has a circular dependency was detected for the service of type that has a circular dependency.?

@Eilon Sounds perfect, as I always say - redundancy leads to clarity.

@pakrym I'm assigning to you to resolve when #592 is merged.