System.TimeSpan を必要とするコンポーネントにパラメーターを渡そうとしています。「長い目盛り」のctorを解決することしかできません。
構成ファイルのスニペットを次に示します。
<component id="timeInForce" type="System.TimeSpan, mscorlib">
<parameters>
<hours>0</hours>
<minutes>15</minutes>
<seconds>0</seconds>
</parameters>
</component>
<component id="FooSettings" type="Foo.FooSettings, Foo">
<parameters>
<tif>${timeInForce}</tif>
</parameters>
</component>
これは例外です:
Castle.MicroKernel.Handlers.HandlerException : Cant create component 'timeInForce'
as it has dependencies to be satisfied.
timeInForce is waiting for the following dependencies:
Keys (components with specific keys)
- ticks which was not registered.
次のように、コンポーネント パラメータのティック値を渡すと機能します。
<parameters><tif>0</tif></parameters>
しかし、これは目的に反します。