Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David Peck 690 posts 1896 karma points c-trib
    Jun 30, 2016 @ 13:06
    David Peck
    0

    No singletons?

    At CG16, Shannon was talking about not using singletons for anything any more due to the dawn of .NET Core and V8. I often create UmbracoHelpers when outside of a view or controller like:

    var umbraco = new UmbracoHelper(UmbracoContext.Current);
    

    This is using a singleton, so is there another way?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies