Class FtpServerBuilderExtensions
Extension methods for IFtpServerBuilder.
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public static class FtpServerBuilderExtensions
  Methods
| Improve this Doc View SourceEnableAnonymousAuthentication(IFtpServerBuilder)
Enables anonymous authentication.
Declaration
public static IFtpServerBuilder EnableAnonymousAuthentication(this IFtpServerBuilder builder)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IFtpServerBuilder | builder | The server builder used to configure the FTP server.  | 
      
Returns
| Type | Description | 
|---|---|
| IFtpServerBuilder | the server builder used to configure the FTP server.  | 
      
UseRootPerUser(IFtpServerBuilder, Nullable<Action<RootPerUserAccountDirectoryQueryOptions>>)
Uses the user name as root directory (NOT ITS HOME DIRECTORY!).
Declaration
public static IFtpServerBuilder UseRootPerUser(this IFtpServerBuilder builder, Action<RootPerUserAccountDirectoryQueryOptions>? configure = default(Action<RootPerUserAccountDirectoryQueryOptions>? ))
  Parameters
| Type | Name | Description | 
|---|---|---|
| IFtpServerBuilder | builder | The server builder used to configure the FTP server.  | 
      
| Nullable<Action<RootPerUserAccountDirectoryQueryOptions>> | configure | Optional service configuration.  | 
      
Returns
| Type | Description | 
|---|---|
| IFtpServerBuilder | the server builder used to configure the FTP server.  | 
      
Remarks
This might not be useful in a production system.
UseSingleRoot(IFtpServerBuilder, Nullable<Action<SingleRootWithoutHomeAccountDirectoryQueryOptions>>)
Uses a single root for all users.
Declaration
public static IFtpServerBuilder UseSingleRoot(this IFtpServerBuilder builder, Action<SingleRootWithoutHomeAccountDirectoryQueryOptions>? configure = default(Action<SingleRootWithoutHomeAccountDirectoryQueryOptions>? ))
  Parameters
| Type | Name | Description | 
|---|---|---|
| IFtpServerBuilder | builder | The server builder used to configure the FTP server.  | 
      
| Nullable<Action<SingleRootWithoutHomeAccountDirectoryQueryOptions>> | configure | Optional service configuration.  | 
      
Returns
| Type | Description | 
|---|---|
| IFtpServerBuilder | the server builder used to configure the FTP server.  |