コード例 #1
0
        private async Task HandleDele(string command)
        {
            var messageNumber = CommandParser.ParseDele(command);

            if (messageNumber.HasValue)
            {
                var commandResult = await _commandHandler.HandleDele(messageNumber.Value);
                await SendCommandResult(commandResult);
            }
            else
            {
                await SendCommandResult(Pop3CommandReply.CreateNoSuchMessage());
            }
        }