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 Updates
APA

Posts on LINQ to Fail | Sciencx (2010-06-09T00:00:00+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 ,<https://www.scien.cx/2010/06/09/supporting-valuetypes-in-autofac/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » Supporting ValueTypes in Autofac. [Internet]. [Accessed ]. 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 . 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: ]
rf:citation
» Supporting ValueTypes in Autofac | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2010/06/09/supporting-valuetypes-in-autofac/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.