Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. PRISM - When is the module catalogue's modules registered with the container?

PRISM - When is the module catalogue's modules registered with the container?

Scheduled Pinned Locked Moved WPF
sysadmindockerhelptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Phillip Donegan
    wrote on last edited by
    #1

    Hi All, As the title says really, when in PRISM are each of the modules in the module catalog registered with the container (in my case Castle). And can I override it? Basically the problem I have is that when doing this for example:

            this.ModuleCatalog.AddModule(AvailableApplicationModules.SampleModule);
    

    At some point that module is then registered with the container. Now in castle atleast when doing this if no Name is specified (which it isn't) then the default AssemblyQualifiedName of the implementation is used. This includes the version number and is causing problems on the build server when it will always be dynamic. So my plan is the set the .Name property when the module is registered with the container so that I can retrieve the module by using:

    this.windsorContainer.Resolve(string Key)

    But I can't find the part were the modules are registered with the container. I'm presuming that PRISM itself takes care of this so I guess I need to override something.

    A 1 Reply Last reply
    0
    • P Phillip Donegan

      Hi All, As the title says really, when in PRISM are each of the modules in the module catalog registered with the container (in my case Castle). And can I override it? Basically the problem I have is that when doing this for example:

              this.ModuleCatalog.AddModule(AvailableApplicationModules.SampleModule);
      

      At some point that module is then registered with the container. Now in castle atleast when doing this if no Name is specified (which it isn't) then the default AssemblyQualifiedName of the implementation is used. This includes the version number and is causing problems on the build server when it will always be dynamic. So my plan is the set the .Name property when the module is registered with the container so that I can retrieve the module by using:

      this.windsorContainer.Resolve(string Key)

      But I can't find the part were the modules are registered with the container. I'm presuming that PRISM itself takes care of this so I guess I need to override something.

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      Prism is open source. So you can probably look at the source code itself to get a better idea. You can use the IModuleCatalog interface if you want to implement something on your own.

      Too much of heaven can bring you underground Heaven can always turn around Too much of heaven, our life is all hell bound Heaven, the kill that makes no sound

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups