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

            return(ReflectionUtils.BuildStaticMethodDelegate <Func <IServiceProvider, object> >(method));
        }
Ejemplo 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));
        }