Created
January 18, 2012 20:33
-
-
Save mikeedwards83/1635407 to your computer and use it in GitHub Desktop.
Example of Multiple Loader Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_context = new Context( | |
config, | |
new MyModuleConfig(), | |
new MyModuleConfig2()); | |
//this class is in another assembly | |
public class MyModuleConfig : IModuleConfiguration{ | |
//This is implemented from the interface | |
public IConfigurationLoader GetConfig(){ | |
AttributeConfigurationLoader loader = new AttributeConfigurationLoader( | |
new string[] { "MyModule.Domains, MyModule" } | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment