/// <summary>
 /// Initializes a new instance of the <see cref="OneDriveFileSystem"/> class.
 /// </summary>
 /// <param name="service">The OneDrive service instance to use for communication with the OneDrive API</param>
 /// <param name="supportFactory">A support factory instance to create some classes in a platform-agnostic way</param>
 /// <param name="drive">The drive to use</param>
 /// <param name="rootFolder">The root folder to use</param>
 public OneDriveFileSystem([NotNull] OneDriveService service, [NotNull] OneDriveSupportFactory supportFactory, [NotNull] Drive drive, [NotNull] Item rootFolder)
 {
     Service = service;
     _supportFactory = supportFactory;
     Drive = drive;
     RootFolderItem = rootFolder;
     Root = new OneDriveDirectoryEntry(this, rootFolder, true);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OneDriveFileSystem"/> class.
 /// </summary>
 /// <param name="service">The OneDrive service instance to use for communication with the OneDrive API</param>
 /// <param name="supportFactory">A support factory instance to create some classes in a platform-agnostic way</param>
 /// <param name="drive">The drive to use</param>
 /// <param name="rootFolder">The root folder to use</param>
 public OneDriveFileSystem([NotNull] OneDriveService service, [NotNull] OneDriveSupportFactory supportFactory, [NotNull] Drive drive, [NotNull] Item rootFolder)
 {
     Service         = service;
     _supportFactory = supportFactory;
     Drive           = drive;
     RootFolderItem  = rootFolder;
     Root            = new OneDriveDirectoryEntry(this, rootFolder, true);
 }