Created
January 29, 2017 11:39
-
-
Save glcheetham/a0acdb350ae24846f3f622c323d7a532 to your computer and use it in GitHub Desktop.
Example instantiation of loosely-coupled class which depends on UmbracoHelper
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
var umbracoHelper = new Umbraco.Web.UmbracoHelper(Umbraco.Web.UmbracoContext.Current); | |
// Or from any other environment that comes with UmbracoHelper already available https://our.umbraco.org/documentation/reference/querying/umbracohelper/ | |
// UmbracoHelper.ContentQuery implements the ITypedContentQuery interface | |
var resourceService = new ResourceService(umbracoHelper.ContentQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment