Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GenericFtpCommandHandlerExtension"/> class.
 /// </summary>
 /// <param name="connection">The connection this instance is used for.</param>
 /// <param name="extensionFor">The name of the command this extension is for.</param>
 /// <param name="name">The command name.</param>
 /// <param name="processCommand">The function to process the received command with.</param>
 /// <param name="alternativeNames">Alternative names.</param>
 public GenericFtpCommandHandlerExtension([NotNull] IFtpConnection connection, [NotNull] string extensionFor, [NotNull] string name, FtpCommandHandlerProcessDelegate processCommand, [NotNull] params string[] alternativeNames)
     : base(connection, extensionFor, name, alternativeNames)
 {
     _processCommand = processCommand;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GenericFtpCommandHandlerExtension"/> class.
 /// </summary>
 /// <param name="connection">The connection this instance is used for</param>
 /// <param name="extensionFor">The name of the command this extension is for</param>
 /// <param name="name">The command name</param>
 /// <param name="processCommand">The function to process the received command with</param>
 /// <param name="alternativeNames">Alternative names</param>
 public GenericFtpCommandHandlerExtension([NotNull] FtpConnection connection, [NotNull] string extensionFor, [NotNull] string name, FtpCommandHandlerProcessDelegate processCommand, [NotNull] params string[] alternativeNames)
     : base(connection, extensionFor, name, alternativeNames)
 {
     _processCommand = processCommand;
 }