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
    Jun 23, 2015 @ 11:58
    LeszekP
    0

    IMediaService Bind To MediaService

    Hi,

    Is there a better way to bind MediaService to IMediaService (Ninject, MVC) than that ugly hack?

    kernel.Bind<IMediaService>().ToMethod(x => ApplicationContext.Current.Services.MediaService);
    

    There is working IContentService and ContentService nice, but it is not for MediaService.

    Cheers

  • 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