AzureKeyCredential
Key credential used to authenticate to an Azure Service.
It provides the ability to update the key without creating a new client.
using System.ClientModel;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace Azure
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public class AzureKeyCredential : ApiKeyCredential
{
[EditorBrowsable(EditorBrowsableState.Never)]
public string Key {
get {
Deconstruct(out string key);
return key;
}
private set {
Update(value);
}
}
public AzureKeyCredential(string key)
: base(key)
{
}
}
}