private static string GetSecret()

in src/Infrastructure/Providers/Concrete/FileSecretProvider.cs [67:77]


        private static string GetSecret(string pathToSecretFile)
        {
            var fileInfo = new FileInfo(pathToSecretFile);
            if (fileInfo.Length > MaxFileSizeInBytes)
            {
                throw new FileLoadException(
                    $"File {pathToSecretFile} exceeded maximum allowed file size {MaxFileSizeInBytes}.");
            }

            return File.ReadAllText(pathToSecretFile);
        }