Ejemplo n.º 1
0
            public static PluginInstance CreateNew(
                int sourceIndex, Assembly asm, Type plugType, IAasxPluginInterface plugObj, string[] args)
            {
                var pi = new PluginInstance(sourceIndex, asm, plugType, plugObj, args);

                pi.name    = pi.GetName();
                pi.actions = pi.ListActions();
                if (pi.name == null || pi.actions == null || pi.actions.Length < 1)
                {
                    return(null);
                }
                return(pi);
            }