Click here to Skip to main content
16,009,537 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionMake a general makefile at root to search subdirectories and pick the path variables Pin
Jitesh Varma15-Mar-17 3:52
professionalJitesh Varma15-Mar-17 3:52 
RantRe: Make a general makefile at root to search subdirectories and pick the path variables Pin
CHill6015-Mar-17 5:42
mveCHill6015-Mar-17 5:42 
GeneralRe: Make a general makefile at root to search subdirectories and pick the path variables Pin
Jitesh Varma15-Mar-17 6:57
professionalJitesh Varma15-Mar-17 6:57 
GeneralRe: Make a general makefile at root to search subdirectories and pick the path variables Pin
CHill6015-Mar-17 13:55
mveCHill6015-Mar-17 13:55 
GeneralRe: Make a general makefile at root to search subdirectories and pick the path variables Pin
Jitesh Varma16-Mar-17 3:09
professionalJitesh Varma16-Mar-17 3:09 
QuestionTFS DownloadFiles activity works slowly Pin
andreybedny1-Mar-17 22:44
andreybedny1-Mar-17 22:44 
QuestionCREATING A TABLE Pin
Member 1300689616-Feb-17 21:57
Member 1300689616-Feb-17 21:57 
AnswerRe: CREATING A TABLE Pin
Richard Andrew x6421-Feb-17 7:16
professionalRichard Andrew x6421-Feb-17 7:16 
AnswerRe: CREATING A TABLE Pin
Munchies_Matt4-Mar-17 7:39
Munchies_Matt4-Mar-17 7:39 
AnswerRe: CREATING A TABLE Pin
Gerry Schmitz6-Mar-17 10:04
mveGerry Schmitz6-Mar-17 10:04 
AnswerRe: CREATING A TABLE Pin
ZurdoDev15-Mar-17 6:24
professionalZurdoDev15-Mar-17 6:24 
QuestionUnity in Modular App Pin
aboubkr9015-Feb-17 2:24
professionalaboubkr9015-Feb-17 2:24 
AnswerRe: Unity in Modular App Pin
Pete O'Hanlon15-Feb-17 2:27
mvePete O'Hanlon15-Feb-17 2:27 
GeneralRe: Unity in Modular App Pin
aboubkr9015-Feb-17 2:47
professionalaboubkr9015-Feb-17 2:47 
GeneralRe: Unity in Modular App Pin
Pete O'Hanlon15-Feb-17 3:00
mvePete O'Hanlon15-Feb-17 3:00 
GeneralRe: Unity in Modular App Pin
aboubkr9015-Feb-17 3:18
professionalaboubkr9015-Feb-17 3:18 
GeneralRe: Unity in Modular App Pin
Pete O'Hanlon15-Feb-17 3:21
mvePete O'Hanlon15-Feb-17 3:21 
GeneralRe: Unity in Modular App Pin
aboubkr9015-Feb-17 3:43
professionalaboubkr9015-Feb-17 3:43 
GeneralRe: Unity in Modular App Pin
Pete O'Hanlon15-Feb-17 4:02
mvePete O'Hanlon15-Feb-17 4:02 
GeneralRe: Unity in Modular App Pin
aboubkr9015-Feb-17 4:25
professionalaboubkr9015-Feb-17 4:25 
In that setup the following code is possible:
C#
public class DefectiveModuel : IModule
{
    public DefectiveModuel(IUnityContainer container)
    {
        // trash the container
    }
}

The setup I'm going for is more like:
C#
public interface IModule
{
    void RegisterServices(IUnityContainer container);
    void Init(IUnityContainer container);
}
public class Manager
{
    public void Init(IUnityContainer root)
    {
        // Do something with the container
        Modules.Foreach(m => m.RegisterServices(root.CreateChildContainer()));
        Modules.Foreach(m => m.Init(root.Wrap()));
    }
}

So modules will only be able to configure there child container.
However, they will be able to use the root container to access services added by other modules on child containers under root.
The only way of discovering the limits of the possible is to venture a little way past them into the impossible.


modified 15-Feb-17 10:50am.

GeneralRe: Unity in Modular App Pin
Pete O'Hanlon15-Feb-17 5:03
mvePete O'Hanlon15-Feb-17 5:03 
GeneralRe: Unity in Modular App Pin
aboubkr9015-Feb-17 5:57
professionalaboubkr9015-Feb-17 5:57 
GeneralRe: Unity in Modular App Pin
Pete O'Hanlon15-Feb-17 7:46
mvePete O'Hanlon15-Feb-17 7:46 
GeneralRe: Unity in Modular App Pin
aboubkr9015-Feb-17 9:57
professionalaboubkr9015-Feb-17 9:57 
GeneralRe: Unity in Modular App Pin
aboubkr9015-Feb-17 3:43
professionalaboubkr9015-Feb-17 3:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.