简体   繁体   中英

What is an ASP.NET Provider?

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

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

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.

如果你想在你的应用程序中实现提供者模式,看看这个.NET Provider Model Template for Visual Studio (无耻插件)。

As other answered above, it is the provider pattern. I would like to add that the Provider patter n is an alias for the Strategy pattern .

https://en.wikipedia.org/wiki/Provider_model

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM