/// <summary> /// Renews certificate for the fabric. /// </summary> /// <remarks> /// Renews the connection certificate for the ASR replication fabric. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='fabricName'> /// fabric name to renew certs for. /// </param> /// <param name='renewCertificate'> /// Renew certificate input. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Fabric> BeginRenewCertificateAsync(this IReplicationFabricsOperations operations, string fabricName, RenewCertificateInput renewCertificate, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginRenewCertificateWithHttpMessagesAsync(fabricName, renewCertificate, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Renews certificate for the fabric. /// </summary> /// <remarks> /// Renews the connection certificate for the ASR replication fabric. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='fabricName'> /// fabric name to renew certs for. /// </param> /// <param name='renewCertificate'> /// Renew certificate input. /// </param> public static Fabric BeginRenewCertificate(this IReplicationFabricsOperations operations, string fabricName, RenewCertificateInput renewCertificate) { return(operations.BeginRenewCertificateAsync(fabricName, renewCertificate).GetAwaiter().GetResult()); }