Ejemplo n.º 1
0
        public Task StartLongOperation(IVirtualFileSystem fileSystem, Func <ILongOperationViewModel, Task> callback)
        {
            var retv = _longOperationsViewModelFactory.Create(fileSystem, callback);

            retv.Initialize();
            _longOperations.Add(retv);
            HasOperationsChanged?.Invoke(this, EventArgs.Empty);
            return(retv.Task);
        }
Ejemplo n.º 2
0
 public void Dispose()
 {
     _longOperations.Clear();
     HasOperationsChanged?.Invoke(this, EventArgs.Empty);
 }
Ejemplo n.º 3
0
 public void StopLongOperation(ILongOperationViewModel operation)
 {
     _longOperations.Remove(operation);
     HasOperationsChanged?.Invoke(this, EventArgs.Empty);
 }