コード例 #1
0
        public static Func <IServiceProvider, object> GetActivator(Type notificationType)
        {
            var method = ActivatorMethod.MakeGenericMethod(notificationType);

            return(ReflectionUtils.BuildStaticMethodDelegate <Func <IServiceProvider, object> >(method));
        }
コード例 #2
0
ファイル: QueryPipelineFactory.cs プロジェクト: teoadal/velo
        public static Func <IServiceProvider, object> GetActivator(Type queryType, Type resultType)
        {
            var method = ActivatorMethod.MakeGenericMethod(queryType, resultType);

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