zcz527 / autofac

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

Lazy objects with metadata are not resolved #398

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. http://code.google.com/p/autofac/wiki/Metadata doesn't work in 3.0 version

What is the expected output? What do you see instead?
IEnumerable<Lazy<Something, SomethingMetadata>> is expected to be resolved but 
it isn't.
This IEnumerable<Lazy<Something>> is resolved correctly.

What version of Autofac are you using? On what version of .NET/Silverlight?
v3.0.0-beta, .NET 4.0

Please provide any additional information below.

Original issue reported on code.google.com by vladimir...@gmail.com on 11 Dec 2012 at 1:01

GoogleCodeExporter commented 8 years ago
Is your metadata an interface or class? In 3.0 the support for metadata had to 
be changed because of the PCL and now works in the same way the portal MEF 
library works (using classes with public properties instead of interfaces). 
That doco is tagged as Autofac2 and needs to be updated to reflect those 
changes.

Original comment by alex.meyergleaves on 13 Dec 2012 at 8:10

GoogleCodeExporter commented 8 years ago

Original comment by travis.illig on 13 Dec 2012 at 4:13

GoogleCodeExporter commented 8 years ago
Metadata is an interface currently. I'll test if it works with classes. Thanks 
for explain!

Original comment by vladimir...@gmail.com on 14 Dec 2012 at 6:40

GoogleCodeExporter commented 8 years ago
I have updated the documentation on the wiki to reflect the changes in 3.0.

http://code.google.com/p/autofac/wiki/Metadata

Original comment by alex.meyergleaves on 14 Dec 2012 at 1:43

GoogleCodeExporter commented 8 years ago
Checked with metadata classes and works fine in v3.0.0-beta2

Original comment by vladimir...@gmail.com on 28 Dec 2012 at 7:33

GoogleCodeExporter commented 8 years ago
Thanks for testing and reporting back Vladimir.

Original comment by alex.meyergleaves on 30 Dec 2012 at 12:48