Skip to content

Ftp Server MS SQL File System Sample Project

alexhiggins732 edited this page May 21, 2019 · 1 revision

MsSqlFtpServer

A sample implementation using the MS SQL as a file fystem for the Fubar Development Portable FTP server http://fubardevelopment.github.io/FtpServer/

Contents

FtpServerConfigOptions type

Namespace

MsSqlFtpServer

Summary

A configuration class to provide settings to the FtpServer.

ImplicitFtps property

Summary

Gets or sets a value indicating whether the FTP server should use implicit FTPS.

KeepAnonymousInMemoryFileSystem property

Summary

Gets or sets a value indicating whether the in-memory file system should be kept between two connects.

MembershipProviderType property

Summary

Gets or sets the membership provider to be used.

PassivePortRange property

Summary

Gets or sets the passive port range.

Port property

Summary

Gets or sets the requested FTP server port.

RefreshToken property

Summary

Gets or sets a value indicating whether the Google Drive access token should be refreshed.

ServerAddress property

Summary

Gets or sets the requested server address.

ServerCertificateFile property

Summary

Gets or sets the path to the server certificate file.

ServerCertificatePassword property

Summary

Gets or sets the password of the server certificate file.

ShowHelp property

Summary

Gets or sets a value indicating whether the help message should be shown.

UseBackgroundUpload property

Summary

Gets or sets a value indicating whether background upload should be used.

GetPort() method

Summary

Gets the requested or the default port.

Returns
Parameters

This method has no parameters.

Validate() method

Summary

Validates the current configuration.

Parameters

This method has no parameters.

MembershipProviderType type

Namespace

MsSqlFtpServer

Summary

The selected membership provider.

Anonymous constants

Summary

Use the membership provider for anonymous users.

Custom constants

Summary

Use the custom (example) membership provider.

Program type

Namespace

MsSqlFtpServer

Summary

Configures Dependency Injection to use the MsSqlFileSystem and starts a FtpServerHost

CreateFtpHostBuilderAndRun(args) method

Summary

Configures Dependency Injection to start a FtpServerHost using the MsSqlFileSystem

Parameters
Name Type Description
args System.String[]

CreateServices(options) method

Summary

Configures default Dependency Injection Services

Returns
Parameters
Name Type Description
options MsSqlFtpServer.FtpServerConfigOptions FtpServerConfigOptions options for the

Main(args) method

Summary

The main entry point.

Parameters
Name Type Description
args System.String[]

RunAsync(services) method

Summary

Builds a Service Provider and starts the FtpServerHost.

Returns
Parameters
Name Type Description
services Microsoft.Extensions.DependencyInjection.IServiceCollection The collection of services to provide for Dependency Injection.