Ejemplo n.º 1
0
        public async Task RemoveAsync(IReadOnlyList <string> nodes)
        {
            var settings        = GetUnaryFileSystemOperationSettings(nodes);
            var deleteOperation = _operationsFactory.CreateDeleteOperation(settings);

            _operationsStateService.AddOperation(deleteOperation);

            await deleteOperation.RunAsync();
        }
Ejemplo n.º 2
0
        public async Task RemoveAsync(IReadOnlyList <string> nodes)
        {
            var(files, directories) = Split(nodes);
            var sourceDirectory = GetCommonRootDirectory(nodes);
            var settings        = Create(files, directories, sourceDirectory);
            var deleteOperation = _operationsFactory.CreateDeleteOperation(settings);

            _operationsStateService.AddOperation(deleteOperation);

            await deleteOperation.RunAsync();
        }