Esempio n. 1
0
        public static Func <IServiceProvider, object> GetActivator(Type notificationType)
        {
            var method = ActivatorMethod.MakeGenericMethod(notificationType);

            return(ReflectionUtils.BuildStaticMethodDelegate <Func <IServiceProvider, object> >(method));
        }
Esempio n. 2
0
        public static Func <IServiceProvider, object> GetActivator(Type queryType, Type resultType)
        {
            var method = ActivatorMethod.MakeGenericMethod(queryType, resultType);

            return(ReflectionUtils.BuildStaticMethodDelegate <Func <IServiceProvider, object> >(method));
        }