2010-06-23 5 views

답변

0

당신은 다음과 같은 ICallHandler (또는 유니티 2.0 IInterceptionBehavior 매우 유사) 구현을 생성하고 객체의 실행 타임 라인에 추가 할 수 있습니다

public class MeasurementHandler : ICallHandler 
{ 
    public IMethodReturn Invoke(IMethodInvocation input, 
           GetNextHandlerDelegate getNext) 
    { 
    StartTimer(); // implement it :) 
    IMethodReturn msg = getNext()(input, getNext); 
    StopTimer(); // implement it :) 
    return msg; 
    } 
}