private static IEnumerable <Type> FilteredTypesByPluginType(ICompositeAppBuilder builder, IPlugin plugin) { // Core plug-in can access types from all other plug-in types. if (plugin.PluginType == PluginTypes.CorePlugin) { return(builder.GetPluginTypes()); } // Application centric plug-in can only access types contained in // other application plugs. return(GetAppPluginTypes(builder)); }
private static IEnumerable <Type> GetAppPluginTypes(ICompositeAppBuilder builder) { return(builder.GetPluginTypes(PluginTypes.ApplicationPlugin, PluginTypes.HostPlugin)); }