Commit bedf78d
committed
Added sanity check to RegisterMvcControllers.
In case the user forgot to call services.AddMvc or services.AddMvcCore,
an expressive exception will be thrown when the user calls
RegisterMvcControllers, since it requires the ASP.NET MVC infrastructure
to be set up. Related to #391.1 parent 964717d commit bedf78d
File tree
1 file changed
+15
-1
lines changed- src/SimpleInjector.Integration.AspNetCore.Mvc
1 file changed
+15
-1
lines changedLines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
61 | 75 | | |
62 | 76 | | |
63 | 77 | | |
| |||
0 commit comments