Binboo.Jira.Commands.PairsCommand.ProcessCommand C# (CSharp) Метод

ProcessCommand() защищенный Метод

protected ProcessCommand ( IContext context ) : ICommandResult
context IContext
Результат ICommandResult
        protected override ICommandResult ProcessCommand(IContext context)
        {
            var randomUsers = Random(JiraConfig.Instance.PairingUsers);
            var msg = new StringBuilder("Pairs: ");

            string pair = NextPair(randomUsers);
            while (null != pair)
            {
                msg.AppendFormat("{0}, ", pair);
                pair = NextPair(randomUsers);
            }

            return CommandResult.Success(msg.Remove(msg.Length - 2, 2).ToString());
        }