public static T ConstructObject <T>(this PluginManager pluginManager, string name) where T : class { var provider = pluginManager.BuildServiceProvider(); return(ConstructObject <T>(provider, name)); }