Skip to content

Instantly share code, notes, and snippets.

@glcheetham
Created January 29, 2017 11:33
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 glcheetham/9bdfa48111bb15c7942c21c2d00323fa to your computer and use it in GitHub Desktop.
Save glcheetham/9bdfa48111bb15c7942c21c2d00323fa to your computer and use it in GitHub Desktop.
Using Inversion of Control with UmbracoHelper
builder.RegisterInstance(umbracoHelper.ContentQuery).As<ITypedPublishedContentQuery>();
builder.RegisterType<ResourceService>().As<IResourceService>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment