/src/SampleLibrary/AOP/SampleAroundInvokeProvider.cs

http://github.com/philiplaureano/LinFu · C# · 20 lines · 16 code · 4 blank · 0 comment · 0 complexity · d2ea374c3e67e29ec858bec13e7ef75d MD5 · raw file

  1. using LinFu.AOP.Interfaces;
  2. namespace SampleLibrary.AOP
  3. {
  4. public class SampleAroundInvokeProvider : IAroundInvokeProvider
  5. {
  6. private readonly IAroundInvoke _aroundInvoke;
  7. public SampleAroundInvokeProvider(IAroundInvoke aroundInvoke)
  8. {
  9. _aroundInvoke = aroundInvoke;
  10. }
  11. public IAroundInvoke GetSurroundingImplementation(IInvocationInfo context)
  12. {
  13. return _aroundInvoke;
  14. }
  15. }
  16. }