Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InRequestScope does not work in WCF Service Application #17

Open
metasequoia opened this issue Jun 24, 2014 · 6 comments
Open

InRequestScope does not work in WCF Service Application #17

metasequoia opened this issue Jun 24, 2014 · 6 comments

Comments

@metasequoia
Copy link

//does not work
Bind<IUnitOfWork>().To<UnitOfWork>().InRequestScope();

//works fine
Bind<IUnitOfWork>().To<UnitOfWork>().InScope(context => HttpContext.Current);

Version:
Ninject 3.2.2.0
Ninject.Extensions.Wcf 3.2.1.0
Ninject.Web.Common 3.2.2.0

@squadwuschel
Copy link

thats not working for my Problem I've posted

@scott-xu
Copy link
Member

Would you mind send a sample demo to me?

@Jetski5822
Copy link

Think I have just hit this too - any work around guys?

@scott-xu
Copy link
Member

@Jetski5822 Would you mind send a sample demo to me?

@Jetski5822
Copy link

@scott-xu will try to today. I am also having problems upgrading Ninject due to Castle.Core version issues so it might be due to that. However it does dispose in a regular webapp, so not sure.

@MisterGoodcat
Copy link

Seems like Ninject has a general problem when it cannot rely on HttpContext for request scoping.

See: ninject/Ninject.Web.WebApi#17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants