This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathProgram.cs
30 lines (26 loc) · 1.48 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Configuration;
using System.Threading.Tasks;
namespace AzureKeyVaultRecoverySamples
{
class Program
{
static void Main(string[] args)
{
ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
// run the vault recovery samples
// soft delete flow with new vault
Console.WriteLine("\n\n** Running recovery/purge sample for a new vault..");
Task.Run(() => KeyVaultRecoverySamples.DemonstrateRecoveryAndPurgeForNewVaultAsync()).ConfigureAwait(false).GetAwaiter().GetResult();
// enabling soft delete on existing vault + soft delete flow
Console.WriteLine("\n\n** Running recovery/purge sample for an existing vault..");
Task.Run(() => KeyVaultRecoverySamples.DemonstrateRecoveryAndPurgeForExistingVaultAsync()).ConfigureAwait(false).GetAwaiter().GetResult();
// soft delete flow for a vault entity
Console.WriteLine("\n\n** Running recovery/purge sample for a vault entity..");
Task.Run(() => KeyVaultEntityRecoverySamples.DemonstrateRecoveryAndPurgeAsync()).ConfigureAwait(false).GetAwaiter().GetResult();
// backup/restore flow for a vault entity
Console.WriteLine("\n\n** Running backup/restore sample for a vault entity..");
Task.Run(() => KeyVaultEntityRecoverySamples.DemonstrateBackupAndRestoreAsync()).ConfigureAwait(false).GetAwaiter().GetResult();
}
}
}