Class GoogleDriveFtpServerBuilderExtensions
Extension methods for IFtpServerBuilder.
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.FileSystem.GoogleDrive.dll
Syntax
public static class GoogleDriveFtpServerBuilderExtensions
  Methods
| Improve this Doc View SourceUseGoogleDrive(IFtpServerBuilder, IConfigurableHttpClientInitializer, String)
Uses Google Drive as file system.
Declaration
public static IFtpServerBuilder UseGoogleDrive(this IFtpServerBuilder builder, IConfigurableHttpClientInitializer httpClientInitializer, string applicationName = "FTP Server")
  Parameters
| Type | Name | Description | 
|---|---|---|
| IFtpServerBuilder | builder | The server builder used to configure the FTP server.  | 
      
| Google.Apis.Http.IConfigurableHttpClientInitializer | httpClientInitializer | The HTTP client initializer.  | 
      
| String | applicationName | The application name.  | 
      
Returns
| Type | Description | 
|---|---|
| IFtpServerBuilder | the server builder used to configure the FTP server.  | 
      
UseGoogleDrive(IFtpServerBuilder, Func<IServiceProvider, DriveService>)
Uses Google Drive as file system.
Declaration
public static IFtpServerBuilder UseGoogleDrive(this IFtpServerBuilder builder, Func<IServiceProvider, DriveService> createDriveService)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IFtpServerBuilder | builder | The server builder used to configure the FTP server.  | 
      
| Func<IServiceProvider, Google.Apis.Drive.v3.DriveService> | createDriveService | Create the Google.Apis.Drive.v3.DriveService to be used to access the Google Drive API.  | 
      
Returns
| Type | Description | 
|---|---|
| IFtpServerBuilder | the server builder used to configure the FTP server.  |