PageRenderTime 81ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/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
 1using LinFu.AOP.Interfaces;
 2
 3namespace SampleLibrary.AOP
 4{
 5    public class SampleMethodReplacement : IInterceptor
 6    {
 7        public bool HasBeenCalled { get; private set; }
 8
 9
10        public object Intercept(IInvocationInfo info)
11        {
12            HasBeenCalled = true;
13            return null;
14        }
15    }
16}