2010-12-17 12 views

答えて

1

使用.First.Lastまたは.AtIndex()インターセプタの参照を宣言するときインターセプタの順序を制御するため、例えば:

container.Register(
    Component.For<ISomething>() 
    .ImplementedBy<Something>() 
    .Interceptors(InterceptorReference.ForKey("myinterceptor")).Last); 

それとも、順序を気にしない場合.Anywhereを使用しています。

+0

もし私があなたの質問から推測するより動的な制御が必要な場合は、 'IInterceptorsSelector' –

+0

をdocsに追加することができます:http://stw.castleproject.org/Windsor.Registering-Interceptors- ProxyOptions.ashx?NS = Windsor#Ordering_interceptors_1 –

関連する問題