48 lines
2.1 KiB
C#
48 lines
2.1 KiB
C#
namespace KeyVaultConfigProviderSample
|
|
{
|
|
internal static class Markup
|
|
{
|
|
internal const string Text = @"<!DOCTYPE html>
|
|
<html lang=""en"">
|
|
<head>
|
|
<meta charset=""utf-8"" />
|
|
<title>Key Vault Configuration Provider Sample</title>
|
|
<style>body{{font-family:sans-serif}}div{{overflow-x:auto}}table{{border-collapse:collapse}}th,td{{padding:8px;border-bottom:1px solid black}}td:nth-child(1),td:nth-child(2){{text-align:center}}th{{background-color:#4CAF50;color:white}}</style>
|
|
</head>
|
|
<body>
|
|
<h1>Key Vault Configuration Provider Sample</h1>
|
|
<div>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Secret</th>
|
|
<th>Name in Key Vault</th>
|
|
<th>Obtained from Configuration</th>
|
|
<th>Value</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>MySecret</td>
|
|
<td><b>MySecret</b></td>
|
|
<td><code>Configuration[""MySecret""]</code></td>
|
|
<td>{0}</td>
|
|
</tr>
|
|
<tr>
|
|
<td rowSpan=""2"">Section:MySecret</td>
|
|
<td rowSpan=""2""><b>Section--MySecret</b></td>
|
|
<td><code>Configuration[""Section:MySecret""]</code></td>
|
|
<td>{1}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>Configuration.GetSection(""Section"")[""MySecret""]</code></td>
|
|
<td>{2}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
</html>";
|
|
}
|
|
}
|