# How to use Ninject with Hangfire when you want to retrieve a service by name

**URL:** <https://discuss.hangfire.io/t/how-to-use-ninject-with-hangfire-when-you-want-to-retrieve-a-service-by-name/263>\
**Category:** question\
**Created:** [October 2, 2014, 9:50am UTC](https://discuss.hangfire.io/t/how-to-use-ninject-with-hangfire-when-you-want-to-retrieve-a-service-by-name/263 "2014-10-02T09:50:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bartkusters](https://avatars.discourse-cdn.com/v4/letter/b/8dc957/32.png) [@bartkusters](https://discuss.hangfire.io/u/bartkusters)\
**Post date:** [October 2, 2014, 9:50am UTC](https://discuss.hangfire.io/t/how-to-use-ninject-with-hangfire-when-you-want-to-retrieve-a-service-by-name/263/1 "2014-10-02T09:50:45Z")

</div>

Hi there,

I’m want to use Hangfire and Ninject but can’t get it to work.  
To retrieve a service from Ninject I use the following:

kernel.[Get](Of ICertainInterface)(“CertainName”)

So I want to retrieve the service by name, does anyone have an idea how to do this with Hangfire and Ninject?

Thanks,  
Bart
