You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Attempts to update the current shared access signature reference of the credential while respecting concurrent updates.
164
+
/// </summary>
165
+
///
166
+
/// <param name="cachedSignature">The cached signature that had been previously read. If this value is not the current <c>_sharedAccessSignature</c>, the update will not be performed.</param>
167
+
/// <param name="updatedSignature">The signature that was locally updated and intended to replace the <paramref name="cachedSignature"/>.</param>
168
+
///
169
+
/// <returns>The current value of the <see cref="SharedAccessSignature" /> of the credential, after the attempted update. This will be the <paramref name="updatedSignature"/> if the update was performed.</returns>
170
+
///
171
+
/// <remarks>
172
+
/// The class field "_sharedAccessSignature" may be mutated when calling this method.
Copy file name to clipboardExpand all lines: sdk/servicebus/Azure.Messaging.ServiceBus/src/Authorization/SharedAccessCredential.cs
+35-10Lines changed: 35 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
// Licensed under the MIT License.
3
3
4
4
usingSystem;
5
+
usingSystem.Runtime.CompilerServices;
5
6
usingSystem.Threading;
6
7
usingSystem.Threading.Tasks;
7
8
usingAzure.Core;
@@ -73,8 +74,7 @@ public SharedAccessCredential(AzureSasCredential sourceCredential)
73
74
/// <param name="sourceCredential">The <see cref="AzureNamedKeyCredential"/> to base signatures on.</param>
74
75
/// <param name="signatureResource">The fully-qualified identifier for the resource to which this credential is intended to serve as authorization for. This is also known as the "token audience" in some contexts.</param>
/// Attempts to update the current shared access signature reference of the credential while respecting concurrent updates.
162
+
/// </summary>
163
+
///
164
+
/// <param name="cachedSignature">The cached signature that had been previously read. If this value is not the current <c>_sharedAccessSignature</c>, the update will not be performed.</param>
165
+
/// <param name="updatedSignature">The signature that was locally updated and intended to replace the <paramref name="cachedSignature"/>.</param>
166
+
///
167
+
/// <returns>The current value of the <see cref="SharedAccessSignature" /> of the credential, after the attempted update. This will be the <paramref name="updatedSignature"/> if the update was performed.</returns>
168
+
///
169
+
/// <remarks>
170
+
/// The class field "_sharedAccessSignature" may be mutated when calling this method.
0 commit comments