Copied to clipboard

Flag this post as spam?

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


  • LeszekP 27 posts 78 karma points
    Jul 06, 2015 @ 08:55
    LeszekP
    0

    ApplicationEventHandler inject services?

    Hi,

    In Umbraco 7.2.2 I could without a problem use Ninject to get a service like:

     CmsService =  (ICmsService)
                   GlobalConfiguration.Configuration.DependencyResolver.GetService(typeof(ICmsService));
    

    but in version 7.2.6 I have an error:

    resolution is not frozen it is not yet possible to get values from it

    with: Bind

    How to inject or resolve services in class that inherits from ApplicationEventHandler?

    The constructor must be empty.

Please Sign in or register to post replies

Write your reply to:

Draft