tugberkugurlu / AspNet.Identity.RavenDB

Fully asynchronous, new and sweet ASP.NET Identity implementation for RavenDB
MIT License
42 stars 28 forks source link

fixed sample app throwing exception due to OC disabled on Autofac provid... #33

Closed ar0311 closed 10 years ago

ar0311 commented 10 years ago

...ed AsyncDocumentSession

tugberkugurlu commented 10 years ago

Thanks for the PR. However, this is not a good idea. The library shouldn't make any changes to provided IDocumentSession implementation. That's why I throw the exception with a meaningful error message. Sorry but had ro reject :neutral_face:

ar0311 commented 10 years ago

Understood, just bringing to your attention the session generated by Autofac doesnt have OC = true and that causes the sample app to throw the exception as intended. I'd fix it but I don't anything about Autofac. If I'm not mistaken, Autofac needs to give the controller an instance of a document session with OC = true and this is not happening in the sample app.