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