예제 #1
0
        private void Complete()
        {
            if( _filestream != null ) {
                _filestream.Dispose();
                _filestream = null;
            }

            if (_currentTaskType == TaskType.Get) {
                DownloadProgress = new TriggeredProperty<long>(0, value => value != DownloadProgress.Value) {TripOnce = false};
            }

            lock (this) {
                _currentTaskType = TaskType.None;
                _currentTask = null;
            }
        }
예제 #2
0
 private RemoteFile()
 {
     _folder = Environment.CurrentDirectory;
     _lastModified = DateTime.MinValue;
     LastStatus = HttpStatusCode.Unused;
     DownloadProgress = new TriggeredProperty<long>(-1, value => value != DownloadProgress.Value) {TripOnce = false};
     _currentTaskType = TaskType.None;
 }