Exemple #1
0
 public void OnException(CastleIInvocation invocation, Exception e, AspectExceptionAction aspectExceptionAction)
 {
 }
Exemple #2
0
 public void PostCall(CastleIInvocation invocation, AspectReturnValue returnValue)
 {
     //override the return value
     returnValue.WrappedReturnValue = "Other";
 }
Exemple #3
0
 public MethodVoteOptions PreCall(CastleIInvocation invocation)
 {
     Console.WriteLine("Method called: {0}, Property {1}", invocation.Method.Name, ConfigurableProperty);
     return(MethodVoteOptions.Continue);
 }
        public void OnException(CastleIInvocation invocation, Exception e, AspectExceptionAction aspectExceptionAction)
        {
			
        }
 public void PostCall(CastleIInvocation invocation, AspectReturnValue returnValue)
 {
     //override the return value
     returnValue.WrappedReturnValue = "Other";
 }
 public MethodVoteOptions PreCall(CastleIInvocation invocation)
 {
     Console.WriteLine("Method called: {0}, Property {1}", invocation.Method.Name, ConfigurableProperty );
     return MethodVoteOptions.Continue; 
 }