DotNetAnalyzers / AspNetCoreAnalyzers

MIT License
62 stars 4 forks source link

Validate service lifetimes #60

Open JohanLarsson opened 5 years ago

JohanLarsson commented 5 years ago

a scoped service shouldnt call for transient services, and a singleton shouldnt call for scoped and transients, as they are likely to die before the service can use them.