예제 #1
0
        protected override void BuildMessage(IEventArgs args)
        {
            builder.Key = FreeMessageConstant.RegisterCommand;

            builder.Ss.Add(command);
            if (desc == null)
            {
                desc = "";
            }
            builder.Ss.Add(desc);

            if (usage == null)
            {
                usage = "";
            }
            builder.Ss.Add(usage);

            if (action != null)
            {
                FreeDebugCommandHandler.RegisterCommand(command, action);
            }
        }
예제 #2
0
        protected override void BuildMessage(IEventArgs args)
        {
            _logger.InfoFormat("RegisterCommandAction :{0} {1} {2} ", command, desc, usage);
            builder.Key = FreeMessageConstant.RegisterCommand;

            builder.Ss.Add(command);
            if (desc == null)
            {
                desc = "";
            }
            builder.Ss.Add(desc);

            if (usage == null)
            {
                usage = "";
            }
            builder.Ss.Add(usage);

            if (action != null)
            {
                FreeDebugCommandHandler.RegisterCommand(command, action);
            }
        }