Even though GetService<T> still exists, GetRequiredService<T> preserves the old behavior of throwing for missing services. |
||
|---|---|---|
| .. | ||
| Controllers | ||
| Models | ||
| ConnegWebsite.kproj | ||
| CustomFormatter.cs | ||
| PlainTextFormatter.cs | ||
| Startup.cs | ||
| project.json | ||
Even though GetService<T> still exists, GetRequiredService<T> preserves the old behavior of throwing for missing services. |
||
|---|---|---|
| .. | ||
| Controllers | ||
| Models | ||
| ConnegWebsite.kproj | ||
| CustomFormatter.cs | ||
| PlainTextFormatter.cs | ||
| Startup.cs | ||
| project.json | ||