public Result <None> Perform(ClientConfig config, UserSettings settings) { return(pictureFormatReader.ReadFormat(namesFormatsToSave) .OnFail(error => Result.Fail <None>(error)) .Then(formatResult => ReadAndGetPath(formatResult)) .Then(path => TryToSaveImage(path, config, settings))); }