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); }
public void Dispose() { _longOperations.Clear(); HasOperationsChanged?.Invoke(this, EventArgs.Empty); }
public void StopLongOperation(ILongOperationViewModel operation) { _longOperations.Remove(operation); HasOperationsChanged?.Invoke(this, EventArgs.Empty); }