What is an ASP.NET Provider?

牧云@^-^@ 提交于 2020-01-23 06:46:11

问题


What is the meaning of "Provider" in ASP.NET Provider? For example when we are speaking about AuthorizationRuleProvider, connectionStrings.providerName, ...?


回答1:


It's a design pattern: The Provider model. There is some good information in this SO Q&A as well: Designing loosely coupled components in .NET - Provider Pattern




回答2:


It's just a concrete implementation of an abstract interface. You can select an appropriate provider to fulfill the requirements of the interface at runtime.




回答3:


And if you want to implement the Provider pattern in your application, take a look at this .NET Provider Model Template for Visual Studio (shameless plug).



来源:https://stackoverflow.com/questions/2287596/what-is-an-asp-net-provider

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!