Overriding ASP.NET Core framework-provided services
David Pine
Senior .NET Content Developer @ Microsoft | International Speaker | Best-selling Author | Dometrain Author | 6x Google Developer Expert | 2x Microsoft MVP
In .NET it’s really easy to create your own interfaces and implementations. Likewise, it’s seemingly effortless to register them for dependency injection. But it is not always obvious how to override existing implementations. Let’s discuss various aspects of “dependency injection†and how you can override the “framework-provided servicesâ€.
As an example, let’s take a recent story on our product backlog for building a security audit of login attempts. The story involved the capture of attempted usernames along with their corresponding IP addresses. This would allow system administrators to monitor for potential attackers. This would require our ASP.NET Core application to have custom logging implemented. [ Continue Reading ]
Please share this!