public static void TestVault() { var vault = VaultHelper.GetVault(":user"); if (!vault.TestStorage()) { try { vault.InitStorage(); } catch { // ignored } } }
/// <summary> /// /// </summary> public AcmeSharpProvider(ILoggerInterface logger, string domain, EnvironmentSettings settings) { this.Settings = settings; this.Logger = logger; this.Domain = domain; this.Logger.LogInfo(true, "Using ACME SHARP uri {0}", this.AcmeUri); this.Vault = VaultHelper.GetVault(":user"); if (!this.Vault.TestStorage()) { try { this.Vault.InitStorage(); } catch { // ignored } } }
private static IVault GetVault() { return(VaultHelper.GetVault(null)); }