Last post Dec 17, 2015 10:46 PM by ritmo2k
Dec 17, 2015 12:21 AM|Ritmo2k|LINK
I have some static classes I pass in, my controller ctor's match the signature of the type I can access those properties easily enough within the controllers.
However I now have some custom types that require deserialization from XML configuration files. These do not follow any web.config syntax etc.
How does one use the frameworks dependency injection to push an exiting instance of a type into the controllers from the startup.cs file?
Dec 17, 2015 10:46 PM|Ritmo2k|LINK
Turns out the new ASP.NET 5 strongly typed configuration backed by json can deserialize much the same as XML and automatically cast entities.