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

Please Sign in or register to post replies

Write your reply to:

Draft