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); } }
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); } }