Where is ProviderBase in .NET 5?

We have many projects based on supplier model / template. (Reading files from different sources, creating reports from different sources, etc.). I couldn't find anything equivalent to ProviderBase in .net 5. We need an abstract interface / class that can be customized at runtime.


source to share

1 answer

I suspect ProviderBase is something we will never see in ASP.NET 5 and up. The configuration is easier at 5 and dependency injection is common. You can now create a class that implements its own interface rather than forcing it to inherit from ProviderBase. You can register a class or an instance of a class with a container and it will appear throughout the application. It might look a little bigger at first, but I also suspect that enabling DI will result in less code and simpler code.



All Articles