/// <summary>
 /// Updates the segment metadata status.
 /// </summary>
 /// <param name="metadata">The metadata.</param>
 /// <param name="segmentNumber">The segment number.</param>
 /// <param name="newStatus">The new status.</param>
 private static void UpdateSegmentMetadataStatus(UploadMetadata metadata, int segmentNumber, SegmentUploadStatus newStatus)
 {
     metadata.Segments[segmentNumber].Status = newStatus;
     try
     {
         metadata.Save();
     }
     catch { } //no need to crash the program if were unable to save the metadata; it is what's in memory that's important
 }
 /// <summary>
 /// Updates the segment metadata status.
 /// </summary>
 /// <param name="metadata">The metadata.</param>
 /// <param name="segmentNumber">The segment number.</param>
 /// <param name="newStatus">The new status.</param>
 private static void UpdateSegmentMetadataStatus(UploadMetadata metadata, int segmentNumber, SegmentUploadStatus newStatus)
 {
     metadata.Segments[segmentNumber].Status = newStatus;
     try
     {
         metadata.Save();
     }
     catch { } //no need to crash the program if were unable to save the metadata; it is what's in memory that's important
 }