tags:

views:

19

answers:

0

Hi, I have the following constraints:

1) Once the user is authenticated(Not at startup) i use a user property to resolve the configuration required for its execution. this configuration is used to instruct the container how to build some of the services. 2) For each request the container(according to the configuration) needs to inject different services.

Can i initialize the container at startup (for the default container) and create at authentication a nested container adding specific configuration dependant services? Is it a best practice? Would i need to inject the nested container to every component?

It's the first i'm using SM or IOC container for that matter, is it the way to go? Thanks in advance. Eyan.