Class FtpCommandHandlerAttribute
Marks a class as being an FTP command handler.
Implements
Inherited Members
Namespace: FubarDev.FtpServer.Commands
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class FtpCommandHandlerAttribute : Attribute, IFtpCommandInformation
Remarks
The class must implement IFtpCommandHandler.
Constructors
| Improve this Doc View SourceFtpCommandHandlerAttribute(String, Boolean, Boolean)
Initializes a new instance of the FtpCommandHandlerAttribute class.
Declaration
public FtpCommandHandlerAttribute(string name, bool isAbortable = false, bool isLoginRequired = true)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the FTP command this handler accepts. |
Boolean | isAbortable | Indicates whether a login is required to execute this command. |
Boolean | isLoginRequired | Indicates whether this command is abortable. |
Properties
| Improve this Doc View SourceIsAbortable
Declaration
public bool IsAbortable { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsLoginRequired
Declaration
public bool IsLoginRequired { get; }
Property Value
Type | Description |
---|---|
Boolean |
Name
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |