Clean ASP.NET Core - Automatic Service Registration Using Reflection and Attributes
Raw Coding via YouTube
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn how to leverage C# Reflection and Attribute functionality in ASP.NET Core to automate service registration in the dependency injection container. Explore techniques for scanning your application to identify standalone and interfaced services, streamlining the registration process. Discover how to implement custom attributes, handle interface services, and create an efficient index model for improved service management. Follow along with practical examples and gain insights into optimizing your ASP.NET Core application's dependency injection setup.
Syllabus
Introduction
Service Registration Example
Service Registration Implementation
Service Attribute
Interface Services
Interfaced Services
Index Model
Conclusion
Taught by
Raw Coding