Class FtpContext
The context in which the command gets executed.
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public class FtpContext
Constructors
| Improve this Doc View SourceFtpContext(FtpCommand, ChannelWriter<IServerCommand>, IFtpConnection)
Initializes a new instance of the FtpContext class.
Declaration
public FtpContext(FtpCommand command, ChannelWriter<IServerCommand> serverCommandWriter, IFtpConnection connection)
Parameters
Type | Name | Description |
---|---|---|
FtpCommand | command | The FTP command. |
ChannelWriter<IServerCommand> | serverCommandWriter | The FTP response writer. |
IFtpConnection | connection | The FTP connection. |
Properties
| Improve this Doc View SourceCommand
Gets the FTP command to be executed.
Declaration
public FtpCommand Command { get; }
Property Value
Type | Description |
---|---|
FtpCommand |
Connection
Gets the FTP connection.
Declaration
public IFtpConnection Connection { get; }
Property Value
Type | Description |
---|---|
IFtpConnection |
ServerCommandWriter
Gets the response writer.
Declaration
public ChannelWriter<IServerCommand> ServerCommandWriter { get; }
Property Value
Type | Description |
---|---|
ChannelWriter<IServerCommand> |