/src/SampleLibrary/AOP/SampleMethodReplacement.cs

http://github.com/philiplaureano/LinFu · C# · 16 lines · 13 code · 3 blank · 0 comment · 0 complexity · 159f4379588b8514e577241dc7f7ad8c MD5 · raw file

  1. using LinFu.AOP.Interfaces;
  2. namespace SampleLibrary.AOP
  3. {
  4. public class SampleMethodReplacement : IInterceptor
  5. {
  6. public bool HasBeenCalled { get; private set; }
  7. public object Intercept(IInvocationInfo info)
  8. {
  9. HasBeenCalled = true;
  10. return null;
  11. }
  12. }
  13. }