Re: Pointed in the right direction?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thanks for the response Walter. I am sort of familiar with what the pattern
is...I guess my question wasn't real clear. I want to create an application
that has base functionality. Or even a program that is a base shell. Then I
want to be able to add modules to this application as needed. Similar to
what a lot of Oracle integrators seem to do. Want Contact management? Here
is that module. Want Financial? here is that module...Need Job tracking?
Here is that module...

I think the provider pattern is what will provide me with that
functionality...but I have not found any information suggesting ways to code
the modules for pluggability. Are there resources that will show me how to
do this?

does that make better sense?


"Walter Wang [MSFT]" <wawang@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:HdrpIeDwGHA.5976@xxxxxxxxxxxxxxxxxxxxxxxx
Hi Eric,

Based on my understanding, your question is how to use the Provider design
pattern in your application. Please feel free to post here if I've
misunderstood anything.

The theory of this pattern is that it allows to define a well-documented,
easy-to-understand API, but at the same time give developers complete
control over the internals of what occurs when those APIs are called.
Defined, a provider is simply a contract between an API and the Business
Logic/Data Abstraction Layer. The provider is the implementation of the
API
separate from the API itself. For example, the Membership feature has a
static method called Membership.ValidateUser(). The Membership class
itself
contains no business logic; instead it simply forwards this call to the
configured provider. It is the responsibility of the provider class to
contain the implementation for that method, calling whatever Business
Logic
Layer or Data Access Layer is necessary.

To learn how to use this design pattern, you may read the source code of
built-in ASP.NET 2.0 Membership, Role Management, Site Navigation, Session
State, Profile, Web Events, and Web Part Personalization providers:
http://weblogs.asp.net/scottgu/archive/2006/04/13/Source-Code-for-the-Built_
2D00_in-ASP.NET-2.0-Providers-Now-Available-for-Download.aspx

Or you can learn from how to implement the Provider design pattern in
ASP.NET 1.1:
http://msdn.microsoft.com/asp.net/downloads/providers/default.aspx?pull=/lib
rary/en-us/dnaspnet/html/asp04212004.asp

Hope this helps. Please feel free to post here if anything is unclear.

Sincerely,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.



.



Relevant Pages

  • Re: OLE DB Services and SQL Native Client
    ... According to the response from internal team, OLE DB SERVICES works for any ... OLE DB Provider because it operates at the OLE DB service layer that is ... Microsoft Online Community Support ...
    (microsoft.public.sqlserver.connect)
  • RE: Pointed in the right direction?
    ... The theory of this pattern is that it allows to define a well-documented, ... a provider is simply a contract between an API and the Business ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework)
  • RE: Multiple Membership providers and AddUserToRole
    ... Nice to hear from you and sorry for the delay response. ... "Provider" property refer to the default RoleProvider configured for the ... and do not need to explicitly set ApplicationName for the role provider. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: SSIS - DataReader Source with ODBC Oracle RDB
    ... This response contains a reference to a third-party World Wide Web ... Microsoft is providing this information as a convenience to you. ... Please be advised that contacting phone support will be a charged call. ... but will do for now until I get an OLE DB provider to ...
    (microsoft.public.sqlserver.dts)
  • Re: How to understand the role of Service?
    ... say that I know of a service interface that exposes methods for logging. ... as a consumer I would still need to acquire an implementation of that interface. ... "EventLogService" that implements the logging service interface I could create an instance of that class, however the provider ... but the ASP.NET provider pattern is an example of an abstract base class with configuration. ...
    (microsoft.public.dotnet.general)