IRoleProvider Support in WebClientApplication

Topics: Web Client Software Factory
Nov 6, 2006 at 4:47 AM
It would be nice to have the BuildProviders method in the WebClientApplication work off of an CompositeWebUI.Providers.IRoleProvider interface instead of the object so we can plug in other Role Providers. Otherwise, we have to alter the CompositeWebUI code to allow for any other Role provider except for the Sql one.
Nov 6, 2006 at 7:38 AM
That's right, but since we're thinking on the extensibility of this model and improving the communication between the ASP.NET provider model and the CompositeWebUI, we've created a new strategy for ObjectBuilder called "ProviderDependency" it will allow users to use the Membership, the Roles and the SiteMap providers that they have configured on their web.config with out adding them to the BuildProviders() method, that'll probably be removed.

The attribute usage for that startegy is like this:

protected MembershipProvider Provider
get {return _provider;}

We're using the facade type to especify which type of provider is.
We still working on this, but it'll a flexible approach to interact with the ASP.NET provider model.