Пример #1
0
        public static IEnumerable <TService> GetServices <TService>(this IResolver resolver)
        {
            if (resolver == null)
            {
                throw new CerseilException("The IResolver parameter cannot be null!");
            }

            return(resolver.GetServices(typeof(TService)).Cast <TService>());
        }