/// <summary> /// Загрузить файл и сохранить в папку для обработки /// </summary> private IResultValue <IDocumentLibrary> LoadAndSaveDocument(IFilePath filePath) => new ResultError(). ResultVoidOk(_ => _messagingService.ShowMessage("Загрузка файла")). ResultVoidOk(_ => _loggerService.LogByObject(LoggerLevel.Info, LoggerAction.Operation, ReflectionInfo.GetMethodBase(this), filePath.FileNameServer)). ResultValueOk(_ => ConvertingFilePath.CreateSavingPath(filePath.FilePathServer, filePath.FileExtensionType, _fileSystemOperations)). ResultValueOkBind(savingPath => _fileSystemOperations.CopyFile(filePath.FilePathServer, savingPath)). ResultValueOkBind(_ => _applicationConverting.OpenDocument(filePath.FilePathServer)). Void(result => _messagingService.ShowAndLogErrors(result.Errors));