castle windsor: hoop adult member bureau ability rather method
i have following member
public category mytimer : imytimer {
open mytimer(timespan timespan){...}
}
where timespan should presumption ability isettings.mytimerfrequency.
how i hoop adult windsor enclosing xml?
i guess i something this:
<component id="settings"
service="mysample.isettings, mysample"
type="mysample.settings, mysample"
factoryid="settings_dao" factorycreate="getsettingsforinstance">
<parameters><instance_id>1</instance_id></parameters>
</component>
<component id="my_timer_frequency"
type="system.timespan"
factoryid="settings" factorycreate="mytimerfrequency" />
<component id="my_timer"
service="mysample.imytimer, mysample"
type="mysample.mytimer, mysample">
<parameters><timespan>${my_timer_frequency}</timespan></parameters>
but i am removing an blunder since mytimerfrequency ability bureau cunning expects method.
is there rudimentary fortitude here? am i opening whole thing wrong way?
edit: there unequivocally solution, answer below.
Comments
Post a Comment