Providers

There are 4 entries for the tag Providers

Avoid Using a Database as an API Integration Point

Before I begin, I should clarify what I mean by using a database as an API integration point. In another life in a distant galaxy far far away, I worked on a project in which we needed to integrate a partner’s system with our system. The method of integration required that when a particular event occurred, they would write some data to a particular table in our database, which would then fire a trigger to perform whatever actions were necessary on our side (vague enough for ya?). In this case, the data model and the related stored procedures made...

Tradeoffs When Minimizing The Impact Of Changes

In a recent post I talked about how good design attempts to minimize the impact of changes to a system, often through Design Patterns. When used appropriately, Design Patterns are a great tool for building a great design, but there is an important caveat to keep in mind anytime you apply a pattern. A Design Pattern might minimize the impact of one kind of change at the expense of amplifying another type of change. What do I mean by this? One common pattern is the Abstract Factory pattern which is often manifested in .NET code via the Provider Model...

Using Generics For Custom Providers To Reduce Code Duplication

Here is a quick little nugget for you custom provider implementers. I recently scanned through this article on MSDN that describes how to implement a custom provider and found some areas for improvement. Reading the section Loading and Initializing Custom Providers I soon encountered a bad smell. No, it was not my upper lip, but rather a code smell. Following the samples when implementing custom providers would lead to a lot of duplicate code. It seemed to me that much of that code is very generic. Did I just say generics? Simone (blog in Italian), a Subtext developer, recently refactored...

Where the Provider Model Falls Short

Now that ASP.NET 2.0 is released, a lot of developers will start to really dig into the provider model design pattern and specification and its various implementations. The provider model is really a blending of several design patterns, but most closely resembles the abstract factory. Where the provider model really busts out the flashlight and shines is when an application (or subset of an application) has a fairly fixed API, but requires flexibility in the implementation. For example, the Membership Provider has a fixed API for dealing with users and roles, but depending on the configured provider, could be manipulating...