Show / Hide Table of Contents

    Class FtpConnectionData

    Common data for a IFtpConnection.

    Inheritance
    Object
    FtpConnectionData
    Implements
    ILocalizationFeature
    IFileSystemFeature
    IAuthorizationInformationFeature
    ITransferConfigurationFeature
    IMlstFactsFeature
    IDisposable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: FubarDev.FtpServer
    Assembly: FubarDev.FtpServer.Abstractions.dll
    Syntax
    public sealed class FtpConnectionData : ILocalizationFeature, IFileSystemFeature, IAuthorizationInformationFeature, ITransferConfigurationFeature, IMlstFactsFeature, IDisposable

    Constructors

    | Improve this Doc View Source

    FtpConnectionData(Encoding, IFeatureCollection, IFtpCatalogLoader)

    Initializes a new instance of the FtpConnectionData class.

    Declaration
    public FtpConnectionData(Encoding defaultEncoding, IFeatureCollection featureCollection, IFtpCatalogLoader catalogLoader)
    Parameters
    Type Name Description
    Encoding defaultEncoding

    The default encoding.

    IFeatureCollection featureCollection

    The feature collection where all features get stored.

    IFtpCatalogLoader catalogLoader

    The catalog loader for the FTP server.

    Properties

    | Improve this Doc View Source

    ActiveMlstFacts

    Declaration
    [Obsolete("Query the information using the IMlstFactsFeature instead.")]
    public ISet<string> ActiveMlstFacts { get; }
    Property Value
    Type Description
    ISet<String>
    | Improve this Doc View Source

    BackgroundCommandHandler

    Gets the IBackgroundCommandHandler that's required for the ABOR command.

    Declaration
    [Obsolete("Query IBackgroundTaskLifetimeFeature to get information about an active background task (if non-null).")]
    public IBackgroundCommandHandler? BackgroundCommandHandler { get; }
    Property Value
    Type Description
    Nullable<IBackgroundCommandHandler>
    | Improve this Doc View Source

    Catalog

    Declaration
    [Obsolete("Query the information using the ILocalizationFeature instead.")]
    public ICatalog Catalog { get; set; }
    Property Value
    Type Description
    NGettext.ICatalog
    | Improve this Doc View Source

    CreateEncryptedStream

    Gets or sets a delegate that allows the creation of an encrypted stream.

    Declaration
    [Obsolete("Query the information using the ISecureConnectionFeature instead.")]
    public CreateEncryptedStreamDelegate? CreateEncryptedStream { get; set; }
    Property Value
    Type Description
    Nullable<CreateEncryptedStreamDelegate>
    | Improve this Doc View Source

    CurrentDirectory

    Declaration
    [Obsolete("Query the information using the IFileSystemFeature instead.")]
    public IUnixDirectoryEntry CurrentDirectory { get; }
    Property Value
    Type Description
    IUnixDirectoryEntry
    | Improve this Doc View Source

    FileSystem

    Declaration
    [Obsolete("Query the information using the IFileSystemFeature instead.")]
    public IUnixFileSystem FileSystem { get; set; }
    Property Value
    Type Description
    IUnixFileSystem
    | Improve this Doc View Source

    FtpUser

    Declaration
    [Obsolete("User the IAuthorizationInformationFeature services to get the current status.")]
    public ClaimsPrincipal? FtpUser { get; set; }
    Property Value
    Type Description
    Nullable<ClaimsPrincipal>
    | Improve this Doc View Source

    IsAnonymous

    Gets or sets a value indicating whether the current user is anonymous.

    Declaration
    [Obsolete("An anonymous user object now implements IAnonymousFtpUser.")]
    public bool IsAnonymous { get; set; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    IsLoggedIn

    Gets or sets a value indicating whether the user with the User. is logged in.

    Declaration
    [Obsolete("User the IFtpLoginStateMachine services to get the current status.")]
    public bool IsLoggedIn { get; set; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Language

    Declaration
    [Obsolete("Query the information using the ILocalizationFeature instead.")]
    public CultureInfo Language { get; set; }
    Property Value
    Type Description
    CultureInfo
    | Improve this Doc View Source

    NlstEncoding

    Gets or sets the Encoding for the NLST command.

    Declaration
    [Obsolete("Query the information using the IEncodingFeature instead.")]
    public Encoding NlstEncoding { get; set; }
    Property Value
    Type Description
    Encoding
    | Improve this Doc View Source

    PassiveSocketClient

    Gets or sets the data connection for a passive data transfer.

    Declaration
    [Obsolete("This property is not used any more. Use IFtpDataConnectionFeature instead.")]
    public TcpClient? PassiveSocketClient { get; set; }
    Property Value
    Type Description
    Nullable<TcpClient>
    | Improve this Doc View Source

    Path

    Declaration
    [Obsolete("Query the information using the IFileSystemFeature instead.")]
    public Stack<IUnixDirectoryEntry> Path { get; set; }
    Property Value
    Type Description
    Stack<IUnixDirectoryEntry>
    | Improve this Doc View Source

    PortAddress

    Gets or sets the address to use for an active data connection.

    Declaration
    [Obsolete("This property is not used any more. Use IFtpDataConnectionFeature instead.")]
    public Address? PortAddress { get; set; }
    Property Value
    Type Description
    Nullable<Address>
    | Improve this Doc View Source

    RenameFrom

    Gets or sets the IUnixFileEntry to use for a RNTO operation.

    Declaration
    [Obsolete("Query the information using the IRenameCommandFeature instead.")]
    public SearchResult<IUnixFileSystemEntry>? RenameFrom { get; set; }
    Property Value
    Type Description
    Nullable<SearchResult<IUnixFileSystemEntry>>
    | Improve this Doc View Source

    RestartPosition

    Gets or sets the restart position for appending data to a file.

    Declaration
    [Obsolete("Query the information using the IRestCommandFeature instead.")]
    public long? RestartPosition { get; set; }
    Property Value
    Type Description
    Nullable<Int64>
    | Improve this Doc View Source

    TransferMode

    Declaration
    [Obsolete("Query the information using the ITransferConfigurationFeature instead.")]
    public FtpTransferMode TransferMode { get; set; }
    Property Value
    Type Description
    FtpTransferMode
    | Improve this Doc View Source

    TransferTypeCommandUsed

    Gets or sets the last used transfer type command.

    Declaration
    [Obsolete("The restriction was lifted.")]
    public string? TransferTypeCommandUsed { get; set; }
    Property Value
    Type Description
    Nullable<String>
    Remarks

    It's not allowed to use PASV when PORT was used previously - and vice versa.

    | Improve this Doc View Source

    User

    Declaration
    [Obsolete("User the IAuthorizationInformationFeature services to get the current status.")]
    public IFtpUser? User { get; set; }
    Property Value
    Type Description
    Nullable<IFtpUser>
    | Improve this Doc View Source

    UserData

    Gets or sets user data as dynamic object.

    Declaration
    [Obsolete("Use IFtpConnection.Features to store custom information.")]
    public dynamic UserData { get; set; }
    Property Value
    Type Description
    Object

    Methods

    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()

    Implements

    ILocalizationFeature
    IFileSystemFeature
    IAuthorizationInformationFeature
    ITransferConfigurationFeature
    IMlstFactsFeature
    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top
    Copyright © 2018 Fubar Development Junker
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.