How do I configure Unity 2.0 Policy Injection to use custom attribute matching rule in configuration file?
What I want is to translate the following code snippet in the unity configuration file.
myContainer.Configure<Interception>()
.AddPolicy("MyPolicy")
.AddMatchingRule<CustomAttributeMatchingRule>
(new InjectionConstructor(typeof(MyAttributeType), true))
.AddCallHandler<MyCallHandler>
("MyValidator",
new ContainerControlledLifetimeManager());