Interface IFeatureInfo
Defines a feature and its handler.
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public interface IFeatureInfo
Properties
| Improve this Doc View SourceNames
Gets the name of the feature.
Declaration
[Obsolete("Features don't have names. Use an attribute that implements IFeatureInfo, like - for example - FtpFeatureTextAttribute.")]
ISet<string> Names { get; }
Property Value
| Type | Description |
|---|---|
| ISet<String> |
Remarks
Used by the OPTS command to find the handler of the feature to modify.
RequiresAuthentication
Gets a value indicating whether this extension requires authentication.
Declaration
[Obsolete("This requirement is automatically determined through the FTP command handler.")]
bool RequiresAuthentication { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Methods
| Improve this Doc View SourceBuildInfo(IFtpConnection)
Build an informational string to be sent by the FEAT command.
Declaration
[Obsolete("Use BuildInfo(object, IFtpConnection) instead.")]
string BuildInfo(IFtpConnection connection)
Parameters
| Type | Name | Description |
|---|---|---|
| IFtpConnection | connection | The configured connection. |
Returns
| Type | Description |
|---|---|
| String | the informational string to be sent by the |
BuildInfo(Type, IFtpConnection)
Build an informational string to be sent by the FEAT command.
Declaration
IEnumerable<string> BuildInfo(Type reference, IFtpConnection connection)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | reference | The reference object type (e.g. an FTP command handler). |
| IFtpConnection | connection | The configured connection. |
Returns
| Type | Description |
|---|---|
| IEnumerable<String> | the informational strings to be sent by the |