Keyed services

20 views
Skip to first unread message

Павел Аниховский

unread,
Aug 30, 2015, 3:22:49 PM8/30/15
to Autofac
Hi!
Can I use keyed service in autofac xml configuration? Is it possible? I found only 'name' attribute...
What a similar behavior to keyed services in xml configuration? Probably, can I use metadata for it?

I use Autofac version 3.3 with 'legacy' xml configuration.
Thanks!

Travis Illig

unread,
Aug 31, 2015, 12:25:49 PM8/31/15
to Autofac
Key and name are effectively the same thing - name just implies the key is a string. In the new configuration style we had to switch to "key" because "name" has a special meaning in the Microsoft.Framework.Configuration system.
Reply all
Reply to author
Forward
0 new messages