Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OneDriveFileSystemProvider"/> class.
 /// </summary>
 /// <param name="drive">The drive</param>
 /// <param name="rootFolder">The root folder entry</param>
 /// <param name="supportFactory">A <see cref="IRequestFactory"/> used to create <see cref="IRestClient"/> and <see cref="HttpWebRequest"/> objects</param>
 public OneDriveFileSystemProvider(Drive drive, Item rootFolder, OneDriveSupportFactory supportFactory)
 {
     _drive = drive;
     _rootFolder = rootFolder;
     _supportFactory = supportFactory;
 }
Exemplo n.º 2
0
 public OneDriveFileEntry(OneDriveFileSystem fileSystem, Item item, long? fileSize)
     : base(fileSystem, item)
 {
     Size = fileSize ?? item.Size ?? 0;
 }