How to use DI container when OwinStartup

You might want to take a look at this blog post.

It’s using Unity but it should end-up being the same.

Basically, use the WebAPI Dependency Resolver. Make sure that everything is mapped properly and it should be fine.

If after setting up your DI you still have problem with your OAuth token, let me know.

Cheers

Leave a Comment