ction!=null)
{(parameter == null) new IncorrectFtpCommandFormatException (command); (parameter);
}
_ onUnsupportedCommand (command);
}
# endregion
# region FtpCommandParserBase
# region Command handlers
override void AborCommandHandler (string parameters)
{(FtpCommand.Abor, AborCommand);
}
override void CdupCommandHandler (string parameters)
{(FtpCommand.Cdup, CdupCommand);
}
override void CwdCommandHandler (string parameters)
{[] args=parameters.Split (new [] { }, StringSplitOptions.RemoveEmptyEntries); (FtpCommand.Cwd, CwdCommand, args.Length gt; 0? args [0]:null);
}
override void DeleCommandHandler (string parameters)
{[] args=parameters.Split (new [] { }, StringSplitOptions.RemoveEmptyEntries); (FtpCommand.Dele, DeleCommand, args.Length gt; 0? args [0]:null);
}
override void ListCommandHandler (string parameters)
{[] args=parameters.Split (new [] { }, StringSplitOptions.RemoveEmptyEntries); (FtpCommand.List, ListCommand, args.Length gt; 0? args [0]:string.Empty);
}
override void MdtmCommandHandler (string parameters)
{[] args=parameters.Split (new [] { }, StringSplitOptions.RemoveEmptyEntries); (FtpCommand.Mdtm, MdtmCommand, args.Length gt; 0? args [0]:null);
}
override void MkdCommandHandler (string parameters)
{[] args=parameters.Split (new [] { }, StringSplitOptions.RemoveEmptyEntries); (FtpCommand.Mkd, MkdCommand, args.Length gt; 0? args [0]:null);
}
override void NlstCommandHandler (string parameters)
{[] args=parameters.Split (new [] { }, StringSplitOptions.RemoveEmptyEntries); (FtpCommand.Nlst, NlstCommand, args.Length gt; 0? args [0]:string.Empty);
}
override void NoopCommandHandler (string parameters)
{(FtpCommand.Noop, NoopCommand);
}
override void PassCommandHandler (string parameters)
{[] args=parameters.Split (new [] { }, StringSplitOptions.RemoveEmptyEntries); (FtpCommand.Pass, PassCommand, args.Length gt; 0? args [0]:null);
}
override void PasvCommandHandler (string parameters)
{(FtpCommand.Pasv, PasvCommand);
}
override void PortCommandHandler (string parameters)
{[] args=parameters.Split (new [] {, }, StringSplitOptions.RemoveEmptyEntries); (args.Length lt; 6) new IncorrectFtpCommandFormatException (FtpCommand.Port);
(PortCommand == null)
{
_ onUnsupportedCommand (FtpCommand.Port) ;;
}
address=0; port=0; (int i=0; i lt; 6; i ++)
{part; (! byte.TryParse (args [i], out part)) new IncorrectFtpCommandFormatException (FtpCommand.Port);
(i lt; 4) +=part lt; lt; (8 * i);=port * 256 + part;
}
(address, port);
}
override void PwdCommandHandler (string parameters)
{(FtpCommand.Pwd, PwdCommand);
} override void QuitCommandHandler (string parameters)
{(FtpCommand.Quit, QuitCommand);
}
override void ReinCommandHandler (string parameters)
{(FtpCommand.Rein, ReinCommand);
}
override void RetrCommandHandler (string parameters)
{[] args=parameters.Split (new [] { }, StringSplitOptions.RemoveEmptyEntries); (FtpCommand.Retr, RetrCommand, args.Length gt; 0? args [0]:null);
}
override void RmdCommandHandler (string parameters)
{[] args=parameters.Split (new [] { }, StringSplitOptions.RemoveEmptyEntries); (FtpCommand.Rmd, RmdCommand, args.Length gt; 0? args [0]:null);
}
override void RnfrCommandHandler (string parameters)
{[] args=parameters.Split (new [] { ...