Show / Hide Table of Contents

    Class FtpServerHost

    Simple IFtpServerHost implementation.

    Inheritance
    Object
    FtpServerHost
    Implements
    IFtpServerHost
    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.dll
    Syntax
    public class FtpServerHost : IFtpServerHost
    Remarks

    This services is used to start and stop all IFtpService instances.

    Constructors

    | Improve this Doc View Source

    FtpServerHost(IEnumerable<IFtpService>)

    Initializes a new instance of the FtpServerHost class.

    Declaration
    public FtpServerHost(IEnumerable<IFtpService> ftpServices)
    Parameters
    Type Name Description
    IEnumerable<IFtpService> ftpServices

    The FTP services to start and stop.

    Methods

    | Improve this Doc View Source

    StartAsync(CancellationToken)

    Must be called to start the FTP server host.

    Declaration
    public Task StartAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken

    Indicates that the start process has been aborted.

    Returns
    Type Description
    Task

    The task.

    Remarks

    Starts all FTP server services.

    | Improve this Doc View Source

    StopAsync(CancellationToken)

    Must be called for a graceful shutdown of the FTP server host.

    Declaration
    public Task StopAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken

    Indicates that the shutdown process should no longer be graceful.

    Returns
    Type Description
    Task

    The task.

    Remarks

    Stops all FTP server services.

    Implements

    IFtpServerHost
    • 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.