/// <summary> /// Waits while the uploaded file is not ready. /// </summary> /// <param name="uploadedFile">The uploaded file.</param> private static void Wait(LinkTriple uploadedFile) { // ReSharper disable once LoopVariableIsNeverChangedInsideLoop while (uploadedFile == null) { Thread.Sleep(1); } }
/// <summary> /// Adds the links to the item. /// </summary> /// <param name="item">The item.</param> /// <param name="linkTriple">The link triple.</param> private static void AddLinksToItem(UploadItem item, LinkTriple linkTriple) { item.MegaLink = linkTriple.MegaLink; item.GDriveLink = linkTriple.GDriveLink; item.FilehorstLink = linkTriple.FilehorstLink; }