Last active
May 30, 2016 21:34
-
-
Save casper-rasmussen/0faf40eb84907131c7316808818e055a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
[InitializableModule] | |
[ModuleDependency(typeof(EPiServer.Web.InitializationModule))] | |
public class DependencyResolverInitialization : IConfigurableModule | |
{ | |
public void ConfigureContainer(ServiceConfigurationContext context) | |
{ | |
context.Container.Configure(ConfigureContainer); | |
DependencyResolver.SetResolver(new StructureMapDependencyResolver(context.Container)); | |
} | |
private static void ConfigureContainer(ConfigurationExpression container) | |
{ | |
//Other implementations goes here | |
container.For<IIncludeConvention>().Add<ExampleIncludeConvention>(); | |
} | |
public void Initialize(InitializationEngine context) | |
{ | |
} | |
public void Uninitialize(InitializationEngine context) | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment