Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 private static IEnumerable <Type> GetAppPluginTypes(ICompositeAppBuilder builder)
 {
     return(builder.GetPluginTypes(PluginTypes.ApplicationPlugin, PluginTypes.HostPlugin));
 }