public Task SaveResult(FileOrganizationResult result, CancellationToken cancellationToken)
        {
            if (result == null || string.IsNullOrEmpty(result.OriginalPath))
            {
                throw new ArgumentNullException("result");
            }

            result.Id = result.OriginalPath.GetMD5().ToString("N");

            return(_repo.SaveResult(result, cancellationToken));
        }
        /// <inheritdoc/>
        public void SaveResult(FileOrganizationResult result, CancellationToken cancellationToken)
        {
            if (result == null || string.IsNullOrEmpty(result.OriginalPath))
            {
                throw new ArgumentNullException(nameof(result));
            }

            result.Id = result.OriginalPath.GetMD5().ToString("N", CultureInfo.InvariantCulture);

            _repo.SaveResult(result, cancellationToken);
        }