@@ -17,8 +17,6 @@ namespace Azure
1717 public class AzureSasCredential
1818 {
1919 private string _signature ;
20- private string _previousSignature ;
21- private long _signatureUpdated ;
2220
2321 /// <summary>
2422 /// Shared access signature used to authenticate to an Azure service.
@@ -30,27 +28,6 @@ public string Signature
3028 private set => Volatile . Write ( ref _signature , value ) ;
3129 }
3230
33- /// <summary>
34- /// The ticks value of the DateTimeOffset when the shared access signature was last set.
35- /// </summary>
36- [ EditorBrowsable ( EditorBrowsableState . Never ) ]
37- public long SignatureUpdated
38- {
39- get => Volatile . Read ( ref _signatureUpdated ) ;
40- private set => Volatile . Write ( ref _signatureUpdated , value ) ;
41- }
42-
43- /// <summary>
44- /// The previous value af <see cref="Signature"/> after <see cref="Update"/> is called.
45- /// </summary>
46- /// <returns></returns>
47- [ EditorBrowsable ( EditorBrowsableState . Never ) ]
48- public string PreviousSignature
49- {
50- get => Volatile . Read ( ref _previousSignature ) ;
51- private set => Volatile . Write ( ref _previousSignature , value ) ;
52- }
53-
5431 /// <summary>
5532 /// Initializes a new instance of the <see cref="AzureSasCredential"/> class.
5633 /// </summary>
@@ -65,9 +42,7 @@ public string PreviousSignature
6542 public AzureSasCredential ( string signature )
6643 {
6744 Argument . AssertNotNullOrWhiteSpace ( signature , nameof ( signature ) ) ;
68- SignatureUpdated = DateTimeOffset . UtcNow . Ticks ;
6945 Signature = signature ;
70- PreviousSignature = signature ;
7146 }
7247#pragma warning restore CS8618 // Non-nullable field is uninitialized. Consider declaring as nullable.
7348
@@ -86,9 +61,6 @@ public AzureSasCredential(string signature)
8661 public void Update ( string signature )
8762 {
8863 Argument . AssertNotNullOrWhiteSpace ( signature , nameof ( signature ) ) ;
89- SignatureUpdated = DateTimeOffset . UtcNow . Ticks ;
90- PreviousSignature = Signature . StartsWith ( "?" , StringComparison . InvariantCulture ) ?
91- Signature . Substring ( 1 ) : Signature ;
9264 Signature = signature ;
9365 }
9466 }
0 commit comments