using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LinFu.AOP.Interfaces { public static class AroundInvokeRegistry { private static readonly List<IAroundInvokeProvider> _providers = new List<IAroundInvokeProvider>(); public static IAroundInvoke GetSurroundingImplementation(IInvocationContext context) { var resultList = (from p in _providers where p != null let aroundInvoke = p.GetSurroundingImplementation(context) where aroundInvoke != null select aroundInvoke).ToList(); if (resultList.Count == 0) return null; return new CompositeAroundInvoke(resultList); } public static List<IAroundInvokeProvider> Providers { get { return _providers; } } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)