ASP.NET MVC アプリケーションの TinyIOC を検討しています。
私がやろうとしているのは、ファクトリ メソッドを使用して、要求ごとにいくつかのインターフェイスをシングルトンとして登録することです。
var container = TinyIoC.TinyIoCContainer.Current;
container.Register<IGlobal>((c, n) => FactoryMethod()).AsPerRequestSingleton();
上記のコードは私に与えますCannot convert current registration of TinyIoC.TinyIoCContainer+DelegateFactory to singleton
。ChildContainers を使用せずに TinyIOC でこれを実装する方法はありますか?