Esempio n. 1
0
        public bool TryEnqueue(SessionRecordingData recording)
        {
            if (_queue.Any(u => u.Recording.Path.Equals(recording.Path)) == false)
            {
                var upload = new Upload(recording.Clone());

                _queue.Enqueue(upload);

                UploadsChanged?.Invoke(this, CollectionChangedEventArgs <Upload> .CreateForAddedItem(upload));

                return(true);
            }

            return(false);
        }
Esempio n. 2
0
 public Upload(SessionRecordingData recording)
 {
     Recording = recording.Clone();
     Status    = UploadStatus.CreateScheduled();
 }