Skip to content

Instantly share code, notes, and snippets.

@5up3rman
Last active May 10, 2017 08:12
Show Gist options
  • Save 5up3rman/874a009a0769192cf84a37384d75ba1a to your computer and use it in GitHub Desktop.
Save 5up3rman/874a009a0769192cf84a37384d75ba1a to your computer and use it in GitHub Desktop.
Live Photo Glass Mapper Sc Custom
public static IDependencyResolver CreateResolver()
{
var config = new Glass.Mapper.Sc.Config();
var dependencyResolver = new DependencyResolver(config);
dependencyResolver.DataMapperFactory.Insert(0, () => new LivePhotoDataMapper());
return dependencyResolver;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment