Affecto.Pdf.Toolkit.PdfSigner.GetTargetFilePath C# (CSharp) Method

GetTargetFilePath() private static method

private static GetTargetFilePath ( string tempFolderPath, string targetFilePath ) : string
tempFolderPath string
targetFilePath string
return string
        private static string GetTargetFilePath(string tempFolderPath, string targetFilePath)
        {
            if (!string.IsNullOrWhiteSpace(tempFolderPath) && Directory.Exists(tempFolderPath))
            {
                return targetFilePath ?? Path.Combine(tempFolderPath, Path.GetRandomFileName());
            }

            return targetFilePath ?? Path.GetTempFileName();
        }