Skip to content

Instantly share code, notes, and snippets.

@mskutta
Last active January 19, 2016 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mskutta/7f0316d260a235e73c66 to your computer and use it in GitHub Desktop.
Save mskutta/7f0316d260a235e73c66 to your computer and use it in GitHub Desktop.
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