Merge XML configuration with code registration

21 views
Skip to first unread message

Tim Schmidt

unread,
May 8, 2013, 4:02:22 PM5/8/13
to aut...@googlegroups.com
Let me first start off with saying that I'm not sure if I'm going about this the right way, so if there's a better way please let me know.  I have a class that implements IStartable and therefore gets registered automatically by my assembly-scanning code similar to that seen here:


But my class also has some configuration properties that I'd like to set in XML.  What I end up with is 2 registrations for my component.  And when my component gets started up, it doesn't have the config parameters since it doesn't know about the XML side.  What is the preferred method for doing this?

Thanks,
tim

Alex Meyer-Gleaves

unread,
May 13, 2013, 9:06:42 AM5/13/13
to aut...@googlegroups.com
Hi Tim,

Check out this post that Paul wrote a while ago.


It sounds like it might cover what you are trying to achieve.

Cheers,

Alex.
Reply all
Reply to author
Forward
0 new messages