We are going to use a role provider with WCF. An overridden GetRolesForUser method will require the use of an existing RoleRepository.
Now, with the run-of-the-mill class, we will build it using StructureMap, and the RoleRepository dependency will be introduced through the constructor.
However, it is a WCF that builds the custom role provider class and that is "executed" declaratively through the roleManager attribute in the web.config file.
I really don't want to rigidly bind the RoleRepository role to the probvider class for the user role, but this seems to be what I need.
Any ideas?
source
share