Ejemplo n.º 1
0
        public OneDriveStream(OneDriveStorage storage, Item file)
        {
            this.storage = storage;
            this.file = file;

            Task<Stream> task = storage.Client.Drive.Items[file.Id].Content.Request().GetAsync();
            using (Stream responseStream = task.Result)
                responseStream.CopyTo(dataStream);

            dataStream.Seek(0, SeekOrigin.Begin);
        }
Ejemplo n.º 2
0
        public OneDriveStream(OneDriveStorage storage, Item file)
        {
            this.storage = storage;
            this.file    = file;

            Task <Stream> task = storage.Client.Drive.Items[file.Id].Content.Request().GetAsync();

            using (Stream responseStream = task.Result)
                responseStream.CopyTo(dataStream);

            dataStream.Seek(0, SeekOrigin.Begin);
        }
Ejemplo n.º 3
0
 public OneDriveDirectory(OneDriveStorage storage, OneDriveDirectory parent, Item directory)
 {
     this.storage   = storage;
     this.parent    = parent;
     this.directory = directory;
 }
Ejemplo n.º 4
0
 public OneDriveDirectory(OneDriveStorage storage, OneDriveDirectory parent, Item directory)
 {
     this.storage = storage;
     this.parent = parent;
     this.directory = directory;
 }
Ejemplo n.º 5
0
 public OneDriveFile(OneDriveStorage storage, OneDriveDirectory parent, Item file)
 {
     this.storage = storage;
     this.parent = parent;
     this.file = file;
 }
Ejemplo n.º 6
0
 public OneDriveFile(OneDriveStorage storage, OneDriveDirectory parent, Item file)
 {
     this.storage = storage;
     this.parent  = parent;
     this.file    = file;
 }