Interface IGoogleDriveServiceProvider
An interface to get the Google Drive service for the given user.
Namespace: FubarDev.FtpServer.FileSystem.GoogleDrive
Assembly: FubarDev.FtpServer.FileSystem.GoogleDrive.dll
Syntax
public interface IGoogleDriveServiceProvider
Methods
| Improve this Doc View SourceGetUserRootAsync(IAccountInformation, CancellationToken)
Gets the Google Drive service and root entry for the given user.
Declaration
Task<(DriveService service, File rootEntry)> GetUserRootAsync(IAccountInformation accountInformation, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IAccountInformation | accountInformation | The FTP account to create the IUnixFileSystem for. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<ValueTuple<Google.Apis.Drive.v3.DriveService, Google.Apis.Drive.v3.Data.File>> | The Google Drive service and the root entry. |