コード例 #1
0
 public void AdicionarConfiguracaoDeIntercepcao(string nomePolitica, Type tipoAtributo, ICallHandler instanciaHandler)
 {
     UnityContainerExtensions.Configure <Interception>(this._container).AddPolicy(nomePolitica).AddMatchingRule(new CustomAttributeMatchingRule(tipoAtributo, false)).AddCallHandler(instanciaHandler);
 }
コード例 #2
0
 private DependencyResolver()
 {
     UnityContainerExtensions.AddNewExtension <Interception>(this._container);
     UnityContainerExtensions.Configure <Interception>(this._container);
 }