CustomLifetimeManager を次のように書きました。
public class CustomLifetimeManager <T> : LifetimeManager
{
private readonly string _arg;
public CustomLifetimeManager(string arg)
{
_arg = arg;
}
}
これで、コンテナをプログラムで簡単に構成できるようになりましたが、次のように構成ファイルに追加するにはどうすればよいでしょうか。
<type type="myTime"
mapTo="myImpl">
<lifetime type="CustomLifetimeManager"/>
</type>