Supporting ValueTypes in Autofac

Today I had an interesting problem with Autofac in which I was registering an Enum that I wanted to inject into my different objects. Some of the injection was being done on the properties, as this is an ASP.NET project and I wanted to inject into are …


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

Today I had an interesting problem with Autofac in which I was registering an Enum that I wanted to inject into my different objects. Some of the injection was being done on the properties, as this is an ASP.NET project and I wanted to inject into are UserControls. But when ever I was doing it, I wasn’t getting the registered value. My component registry was working file, if I manually tried to get it out it worked fine, but the property was not set!


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate
APA
Posts on LINQ to Fail | Sciencx (2022-12-09T05:07:50+00:00) » Supporting ValueTypes in Autofac. Retrieved from https://www.scien.cx/2010/06/09/supporting-valuetypes-in-autofac/.
MLA
" » Supporting ValueTypes in Autofac." Posts on LINQ to Fail | Sciencx - Wednesday June 9, 2010, https://www.scien.cx/2010/06/09/supporting-valuetypes-in-autofac/
HARVARD
Posts on LINQ to Fail | Sciencx Wednesday June 9, 2010 » Supporting ValueTypes in Autofac., viewed 2022-12-09T05:07:50+00:00,<https://www.scien.cx/2010/06/09/supporting-valuetypes-in-autofac/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » Supporting ValueTypes in Autofac. [Internet]. [Accessed 2022-12-09T05:07:50+00:00]. Available from: https://www.scien.cx/2010/06/09/supporting-valuetypes-in-autofac/
CHICAGO
" » Supporting ValueTypes in Autofac." Posts on LINQ to Fail | Sciencx - Accessed 2022-12-09T05:07:50+00:00. https://www.scien.cx/2010/06/09/supporting-valuetypes-in-autofac/
IEEE
" » Supporting ValueTypes in Autofac." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2010/06/09/supporting-valuetypes-in-autofac/. [Accessed: 2022-12-09T05:07:50+00:00]
rf:citation
» Supporting ValueTypes in Autofac | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2010/06/09/supporting-valuetypes-in-autofac/ | 2022-12-09T05:07:50+00:00
https://github.com/addpipe/simple-recorderjs-demo