PageRenderTime 266ms CodeModel.GetById 171ms app.highlight 6ms RepoModel.GetById 85ms app.codeStats 0ms

/src/SampleLibrary/AOP/SampleAroundInvoke.cs

http://github.com/philiplaureano/LinFu
C# | 22 lines | 17 code | 5 blank | 0 comment | 0 complexity | 9f3b572834edcc66f9ae924db2ab82db MD5 | raw file
 1using LinFu.AOP.Interfaces;
 2
 3namespace SampleLibrary.AOP
 4{
 5    public class SampleAroundInvoke : IAroundInvoke
 6    {
 7        public bool BeforeInvokeWasCalled { get; private set; }
 8
 9        public bool AfterInvokeWasCalled { get; private set; }
10
11
12        public void BeforeInvoke(IInvocationInfo info)
13        {
14            BeforeInvokeWasCalled = true;
15        }
16
17        public void AfterInvoke(IInvocationInfo info, object returnValue)
18        {
19            AfterInvokeWasCalled = true;
20        }
21    }
22}