c# - Instantiate TimeSpan struct in Spring .NET -
i there way instantiate timespan struct in spring .net configuration?
my config looks this:
<object id="historize_production_control" type="bb.visctrl.process.imageindexer.processlogic.historizeandcleanproductioncontrol,bb.visctrl.process.imageindexer"> <constructor-arg name="inspectiontokeep" value="6"></constructor-arg> <constructor-arg name="destationdir" value=".\"></constructor-arg> <constructor-arg name="resourcecleaner" ref="file_cleaner"></constructor-arg> <constructor-arg name="cleanhistoryresourcesafter" value="6d {timespan here }"></constructor-arg> <constructor-arg name="cleanresourcesafter" ref="6d {timespan here }" ></constructor-arg> </object>
thanks answers.
if correctly understood, want that:
<object id="reftimespan" type="system.timespan"> <constructor-arg name="days" value="6" /> <constructor-arg name="hours" value="0" /> <constructor-arg name="minutes" value="0" /> <constructor-arg name="seconds" value="0" /> </object>
<constructor-arg name="cleanhistoryresourcesafter" ref="reftimespan" /> <constructor-arg name="cleanresourcesafter" ref="reftimespan" />
Comments
Post a Comment