Help - custom providers and instances

T

Tullamore

I'm writing an application that uses custom providers. I have made a
serviceclass that loads all the specified (in web.config) providers.
My problem is that I want this serviceclass that deals with all the
providers should be "already instanced" exactly like example the membership
class.

I've made a class that inherits ConfigurationSection that is specified in
the webconfig:
<configSections>
<sectionGroup name="system.web">
<section name="CmsService" type="MyNamespace.Class, Assembly"
allowDefinition="MachineToApplication" restartOnExternalChanges="true"/>
</sectionGroup>
</configSections>

I don't want to use the "new" constructor everytime I want to use the class.
How do accomplish that?

Regards /Anders
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top