コード例 #1
0
 /// <summary>
 /// Validate a Secret in the profile.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='secretSource'>
 /// The secret source.
 /// </param>
 /// <param name='secretType'>
 /// The secret type. Possible values include: 'UrlSigningKey',
 /// 'ManagedCertificate', 'CustomerCertificate'
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ValidateSecretOutput> SecretMethodAsync(this IValidateOperations operations, ResourceReference secretSource, string secretType, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.SecretMethodWithHttpMessagesAsync(secretSource, secretType, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Validate a Secret in the profile.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='secretSource'>
 /// The secret source.
 /// </param>
 /// <param name='secretType'>
 /// The secret type. Possible values include: 'UrlSigningKey',
 /// 'ManagedCertificate', 'CustomerCertificate'
 /// </param>
 public static ValidateSecretOutput SecretMethod(this IValidateOperations operations, ResourceReference secretSource, string secretType)
 {
     return(operations.SecretMethodAsync(secretSource, secretType).GetAwaiter().GetResult());
 }