Strategy design pattern

Discussion in 'ASP .Net' started by Mike Gleason jr Couturier, Oct 1, 2008.

  1. Hi,

    I want to write a module and let the webmaster select different providers
    for that module :
    - module.dll may use...
    - module_sqlprovider.dll
    - module_xmlprovider.dll
    - module_<future_module_provider>.dll

    So in the web.config I want the user to link the site with the module.dll
    and with a configuration, tell the module to use for example the

    So I know hot to register a module.. but I don't know how can I do the
    remaining part... I guess I would need to use the factory design pattern

    I just need the big lines...


    Mike Gleason jr Couturier, Oct 1, 2008
    1. Advertisements

  2. Mike Gleason jr Couturier

    sloan Guest

    sloan, Oct 1, 2008
    1. Advertisements

  3. Yup, that's exactly what I was looking for.. reflection (especially the
    CreateInstance method coupled with configuration settings)...

    Mike Gleason jr Couturier, Oct 1, 2008
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.