Unity 2.0 ポリシー インジェクションを設定して、設定ファイルでカスタム属性一致ルールを使用するにはどうすればよいですか?
私が望むのは、unity 構成ファイル内の次のコード スニペットを翻訳することです。
myContainer.Configure<Interception>()
.AddPolicy("MyPolicy")
.AddMatchingRule<CustomAttributeMatchingRule>
(new InjectionConstructor(typeof(MyAttributeType), true))
.AddCallHandler<MyCallHandler>
("MyValidator",
new ContainerControlledLifetimeManager());