Esempio n. 1
0
        public bool Run(SptWrapper wrapper, string args)
        {
            string[] argSplit = args.Split(' ');

            string moduleName = argSplit[0];
            string typeName   = argSplit[1];

            if (argSplit.Length != 0)
            {
                wrapper.DbgOutput("Usage: !name2ee <module> <type>");
            }

            return(true);
        }
Esempio n. 2
0
        public bool Run(SptWrapper wrapper, string args)
        {
            string[] argSplit = args.Split(' ');

            string moduleName = argSplit[0];
            string typeName = argSplit[1];

            if (argSplit.Length != 0)
            {
                wrapper.DbgOutput("Usage: !name2ee <module> <type>");
            }

            return true;
        }
Esempio n. 3
0
        private static bool RunMethod <T>(SptWrapper wrapper, string args)
            where T : IPluginMethod, new()
        {
            var plugin = new T();

            using (wrapper)
            {
                try
                {
                    return(plugin.Run(wrapper, args));
                }
                catch (Exception ex)
                {
                    wrapper.DbgOutput(ex.ToString());
                    return(false);
                }
            }
        }