public bool Exists(string key) { if (string.IsNullOrEmpty(key)) { throw new ArgumentException(nameof(key)); } string normalizedKey = key.ToLower().ToConsulKey(); return(_client.ExistKeyValueAsync(normalizedKey).GetAwaiter().GetResult()); }
public bool Exists(string key) { if (string.IsNullOrEmpty(key)) { throw new ArgumentException(nameof(key)); } string normalizedKey = key.ToLower().ToConsulKey(); return(_client.ExistKeyValueAsync(normalizedKey).GetAwaiter().GetResult()); }