AzureSasCredential
Shared access signature credential used to authenticate to an Azure Service.
It provides the ability to update the shared access signature without creating a new client.
using Azure.Core;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Threading;
namespace Azure
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public class AzureSasCredential
{
private string _signature;
[EditorBrowsable(EditorBrowsableState.Never)]
public string Signature {
get {
return Volatile.Read(ref _signature);
}
private set {
Volatile.Write(ref _signature, value);
}
}
public AzureSasCredential(string signature)
{
Argument.AssertNotNullOrWhiteSpace(signature, "signature");
Signature = signature;
}
public void Update(string signature)
{
Argument.AssertNotNullOrWhiteSpace(signature, "signature");
Signature = signature;
}
}
}