dongfo / autofac

Automatically exported from code.google.com/p/autofac
0 stars 0 forks source link

AutofacDependencyInjectionServiceBehavior #342

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When using the self hosting option (following the example) I fear that the 
AutofacDependencyInjectionServiceBehavior does not properly create a new 
lifetime scope for each WCF operation.

I think a fix would be to (unless AutofacDependencyInjectionServiceBehavior is 
a singleton) pass in a new lifetime scope into the AutofacInstanceProvider 
during the ApplyDispatchBehavior method.

Do you agree?

Original issue reported on code.google.com by jarrettv on 5 Sep 2011 at 8:03

GoogleCodeExporter commented 8 years ago
After digging into the code more... It looks like I am just getting the current 
lifetime scope incorrectly. Thanks Jorge issue 339.

Original comment by jarrettv on 5 Sep 2011 at 8:14

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Please close, thanks!

Original comment by jarrettv on 6 Sep 2011 at 2:47

GoogleCodeExporter commented 8 years ago
No worries - thanks for taking the time to post a report.

Original comment by nicholas...@gmail.com on 6 Sep 2011 at 4:09