Afshar
Afshar

Reputation: 11543

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, ...?

Upvotes: 6

Views: 9093

Answers (4)

Tri
Tri

Reputation: 344

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

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

Upvotes: 0

Steven
Steven

Reputation: 172835

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).

Upvotes: 1

Trevor Tippins
Trevor Tippins

Reputation: 2847

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.

Upvotes: 3

Fredrik Mörk
Fredrik Mörk

Reputation: 158389

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

Upvotes: 10

Related Questions