Last active
January 19, 2016 19:00
-
-
Save mskutta/7f0316d260a235e73c66 to your computer and use it in GitHub Desktop.
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
public static class GlassMapperScCustom | |
{ | |
public static IDependencyResolver CreateResolver() | |
{ | |
var config = new Glass.Mapper.Sc.Config(); | |
var resolver = new DependencyResolver(config); | |
// Add ResolveItemTask at the beginning of the Configuration Resolver. | |
resolver.ConfigurationResolverFactory.Insert(0, () => new ResolveItemTask()); | |
return resolver; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment